#CDC28A#CDC28A

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

Color values

HEX#CDC28A
RGBrgb(205, 194, 138)
HSLhsl(50, 40%, 67%)
HSVhsv(50, 33%, 80%)
CMYKcmyk(0%, 5.4%, 32.7%, 19.6%)
CIE-LABlab(78.11, -4.57, 29.62)
CIE-LCHlch(78.11, 29.97, 98.78°)
OKLaboklab(80.97% -0.0109 0.0739)
OKLCHoklch(80.97% 0.075 98.4)
XYZxyz(49.0566, 53.3989, 31.7627)
Luminance0.5340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC28A #8A95CD
analogous
#CDA08A #CDC28A #B7CD8A
triadic
#CDC28A #8ACDC2 #C28ACD
tetradic
#CDC28A #8ACDA0 #8A95CD #CD8AB7
square
#CDC28A #8ACDA0 #8A95CD #CD8AB7
split-complementary
#CDC28A #8AB7CD #A08ACD
monochromatic
#9B8C42 #BBAC5F #CDC28A #DFD8B5 #F2EFE0

Accessibility & contrast

On white

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

On black

11.68
#CDC28A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC28A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC28A#FFFFFF#000000##000000
##CDC28A1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBF86
Deuteranopia (green-blind)
#D0C38C
Tritanopia (blue-blind)
#D7BAB3
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc28a;
/* rgb */ color: rgb(205, 194, 138);
/* oklch */ color: oklch(81.0% 0.075 98.4);
Tailwind
colors: {
  custom: {
    50: '#ddd4ac',
    500: '#cdc28a',
    950: '#000000',
  },
}
SCSS
$custom: #cdc28a;
$custom-light: #ddd4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc28a",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 138
  },
  "hsl": {
    "h": 50.149,
    "s": 40.12,
    "l": 67.255
  },
  "oklch": {
    "l": 0.80971,
    "c": 0.07465,
    "h": 98.4
  },
  "luminance": 0.53398
}

Semantic roles & 50–950 ramp

primary
#CDC28A
secondary
#5A66A1
accent
#48B332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC28A

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

Preview Lab → · Contrast checker → · Palette generator →

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