#CDC28D#CDC28D

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

Color values

HEX#CDC28D
RGBrgb(205, 194, 141)
HSLhsl(50, 39%, 68%)
HSVhsv(50, 31%, 80%)
CMYKcmyk(0%, 5.4%, 31.2%, 19.6%)
CIE-LABlab(78.16, -4.20, 28.11)
CIE-LCHlch(78.16, 28.42, 98.49°)
OKLaboklab(81.03% -0.0096 0.0704)
OKLCHoklch(81.03% 0.071 97.8)
XYZxyz(49.2768, 53.4870, 32.9224)
Luminance0.5349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC28D #8D98CD
analogous
#CDA28D #CDC28D #B8CD8D
triadic
#CDC28D #8DCDC2 #C28DCD
tetradic
#CDC28D #8DCDA2 #8D98CD #CD8DB8
square
#CDC28D #8DCDA2 #8D98CD #CD8DB8
split-complementary
#CDC28D #8DB8CD #A28DCD
monochromatic
#9B8C44 #BAAB62 #CDC28D #E0D9B8 #F2F0E2

Accessibility & contrast

On white

1.80
#CDC28D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC28D#FFFFFF#000000##000000
##CDC28D1.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBF89
Deuteranopia (green-blind)
#D0C38F
Tritanopia (blue-blind)
#D7BAB4
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc28d;
/* rgb */ color: rgb(205, 194, 141);
/* oklch */ color: oklch(81.0% 0.071 97.8);
Tailwind
colors: {
  custom: {
    50: '#ddd4ae',
    500: '#cdc28d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc28d;
$custom-light: #ddd4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc28d",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 141
  },
  "hsl": {
    "h": 49.687,
    "s": 39.024,
    "l": 67.843
  },
  "oklch": {
    "l": 0.81029,
    "c": 0.07102,
    "h": 97.8
  },
  "luminance": 0.53486
}

Semantic roles & 50–950 ramp

primary
#CDC28D
secondary
#5C68A2
accent
#49B233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC28D

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

Preview Lab → · Contrast checker → · Palette generator →

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