#CDC28E#CDC28E

#CDC28E is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.070 H 97.6°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CDC28E
RGBrgb(205, 194, 142)
HSLhsl(50, 39%, 68%)
HSVhsv(50, 31%, 80%)
CMYKcmyk(0%, 5.4%, 30.7%, 19.6%)
CIE-LABlab(78.18, -4.07, 27.61)
CIE-LCHlch(78.18, 27.91, 98.39°)
OKLaboklab(81.05% -0.0092 0.0692)
OKLCHoklch(81.05% 0.07 97.6)
XYZxyz(49.3516, 53.5169, 33.3160)
Luminance0.5352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC28E #8E99CD
analogous
#CDA28E #CDC28E #B8CD8E
triadic
#CDC28E #8ECDC2 #C28ECD
tetradic
#CDC28E #8ECDA2 #8E99CD #CD8EB8
square
#CDC28E #8ECDA2 #8E99CD #CD8EB8
split-complementary
#CDC28E #8EB8CD #A28ECD
monochromatic
#9C8D45 #BAAB64 #CDC28E #E0D9B8 #F3F0E3

Accessibility & contrast

On white

1.79
#CDC28E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CDC28E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC28E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC28E#FFFFFF#000000##000000
##CDC28E1.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBF8B
Deuteranopia (green-blind)
#CFC390
Tritanopia (blue-blind)
#D7BBB4
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc28e;
/* rgb */ color: rgb(205, 194, 142);
/* oklch */ color: oklch(81.0% 0.070 97.6);
Tailwind
colors: {
  custom: {
    50: '#ddd4af',
    500: '#cdc28e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc28e;
$custom-light: #ddd4af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc28e",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 142
  },
  "hsl": {
    "h": 49.524,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.81048,
    "c": 0.0698,
    "h": 97.6
  },
  "luminance": 0.53516
}

Semantic roles & 50–950 ramp

primary
#CDC28E
secondary
#5D69A2
accent
#4AB234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC28E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CDC28E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva