#CDC28B#CDC28B

#CDC28B is a light, moderate yellow. Relative luminance 0.534; OKLCH L 81.0% C 0.073 H 98.2°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#CDC28B
RGBrgb(205, 194, 139)
HSLhsl(50, 40%, 67%)
HSVhsv(50, 32%, 80%)
CMYKcmyk(0%, 5.4%, 32.2%, 19.6%)
CIE-LABlab(78.13, -4.45, 29.11)
CIE-LCHlch(78.13, 29.45, 98.69°)
OKLaboklab(80.99% -0.0105 0.0727)
OKLCHoklch(80.99% 0.073 98.2)
XYZxyz(49.1294, 53.4280, 32.1457)
Luminance0.5343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC28B #8B96CD
analogous
#CDA18B #CDC28B #B7CD8B
triadic
#CDC28B #8BCDC2 #C28BCD
tetradic
#CDC28B #8BCDA1 #8B96CD #CD8BB7
square
#CDC28B #8BCDA1 #8B96CD #CD8BB7
split-complementary
#CDC28B #8BB7CD #A18BCD
monochromatic
#9B8C43 #BBAC60 #CDC28B #DFD8B6 #F2EFE1

Accessibility & contrast

On white

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

On black

11.69
#CDC28B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC28B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC28B#FFFFFF#000000##000000
##CDC28B1.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc28b;
/* rgb */ color: rgb(205, 194, 139);
/* oklch */ color: oklch(81.0% 0.073 98.2);
Tailwind
colors: {
  custom: {
    50: '#ddd4ad',
    500: '#cdc28b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc28b;
$custom-light: #ddd4ad;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc28b",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 139
  },
  "hsl": {
    "h": 50,
    "s": 39.759,
    "l": 67.451
  },
  "oklch": {
    "l": 0.8099,
    "c": 0.07344,
    "h": 98.2
  },
  "luminance": 0.53427
}

Semantic roles & 50–950 ramp

primary
#CDC28B
secondary
#5B67A1
accent
#48B333
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC28B

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

Preview Lab → · Contrast checker → · Palette generator →

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