#CDC828
Closest named color: Mustard Yellow (#D2BD0A). oklch(81.1% 0.165 107.6), rgb(205, 200, 40).
Aa
Black text reads best on this color (11.88:1).
About this color
#CDC828 is a light, vivid yellow. In OKLCH its lightness is 81%, its chroma 0.165 and its hue 108°. Its hue sits on the warm side of the wheel. The nearest named color is Mustard Yellow (#D2BD0A), ΔE 0.027 away. Black text reads best on it, at 11.88:1.
| Hue family | Yellows |
| Lightness | light (81%) |
| Chroma | vivid (0.165) |
| Temperature | warm |
| Nearest name | Mustard Yellow (#D2BD0A) |
| Black text | 11.88:1 |
| White text | 1.76:1 |
Values
| HEX | #CDC828 |
| RGB | rgb(205, 200, 40) |
| HSL | hsl(58, 67%, 48%) |
| OKLCH | oklch(81.1% 0.165 107.6) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #CDC828 | 1.76:1 | Fails | Lc -36.2 | Non-text elements, placeholder text |
| Black text on #CDC828 | 11.88:1 | AAA | Lc 71.6 | Content text, not long reading |
| #CDC828 text on white | 1.76:1 | Fails | Lc 32.3 | Non-text elements, placeholder text |
| #CDC828 text on black | 11.88:1 | AAA | Lc -70.4 | Content text, not long reading |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 300.
-
Step 50
50
#F7F7E6
oklch(97.2% 0.022 106.8)
-
Step 100
100
#EDEDC8
oklch(93.7% 0.048 107.3)
-
Step 200
200
#DFDE97
oklch(88.5% 0.091 107.4)
-
Step 300
300 (this color)
#CDC828
oklch(81.1% 0.165 107.6)
-
Step 400
400
#ABA600
oklch(70.6% 0.152 107.6)
-
Step 500
500
#938E00
oklch(63.1% 0.135 107.2)
-
Step 600
600
#7B7700
oklch(55.5% 0.119 107.4)
-
Step 700
700
#676400
oklch(49% 0.105 107.7)
-
Step 800
800
#555200
oklch(42.8% 0.092 107.3)
-
Step 900
900
#464400
oklch(37.6% 0.081 107.8)
-
Step 950
950
#2A2800
oklch(27% 0.058 106.8)
#CDC828 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #D9C000 | 0.024 |
| Deuteranopia (no green cones) | #DCC537 | 0.026 |
| Tritanopia (no blue cones) | #DCBAAB | 0.150 |
| Achromatopsia (no color) | #C3C3C3 | 0.165 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #CDC828
#CDC828
oklch(81.1% 0.165 107.6)
- #BDB8FF
#BDB8FF
oklch(81.2% 0.099 287.2)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #CDC828, closest first.
No curated palette has a color within ΔE 0.04 of #CDC828.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Mustard Yellow #D2BD0A ΔE 0.027
- Dark Yellow #D5B60A ΔE 0.045
- Olive Yellow #C2B709 ΔE 0.048
- Mustard #CEB301 ΔE 0.052
- Greenish Beige #C9D179 ΔE 0.059
- Golden #F5BF03 ΔE 0.060
- Greenish Tan #BCCB7A ΔE 0.063
- Pea #A4BF20 ΔE 0.064
Use #CDC828 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.