#CDC28F#CDC28F

#CDC28F is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.1% C 0.069 H 97.4°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#CDC28F
RGBrgb(205, 194, 143)
HSLhsl(49, 38%, 68%)
HSVhsv(49, 30%, 80%)
CMYKcmyk(0%, 5.4%, 30.2%, 19.6%)
CIE-LABlab(78.20, -3.94, 27.10)
CIE-LCHlch(78.20, 27.39, 98.27°)
OKLaboklab(81.07% -0.0088 0.068)
OKLCHoklch(81.07% 0.069 97.4)
XYZxyz(49.4270, 53.5471, 33.7132)
Luminance0.5355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC28F #8F9ACD
analogous
#CDA38F #CDC28F #B9CD8F
triadic
#CDC28F #8FCDC2 #C28FCD
tetradic
#CDC28F #8FCDA3 #8F9ACD #CD8FB9
square
#CDC28F #8FCDA3 #8F9ACD #CD8FB9
split-complementary
#CDC28F #8FB9CD #A38FCD
monochromatic
#9C8D46 #BAAB65 #CDC28F #E0D9B9 #F3F0E4

Accessibility & contrast

On white

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

On black

11.71
#CDC28F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC28F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC28F#FFFFFF#000000##000000
##CDC28F1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBF8C
Deuteranopia (green-blind)
#CFC391
Tritanopia (blue-blind)
#D6BBB5
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc28f;
/* rgb */ color: rgb(205, 194, 143);
/* oklch */ color: oklch(81.1% 0.069 97.4);
Tailwind
colors: {
  custom: {
    50: '#ddd4b0',
    500: '#cdc28f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc28f;
$custom-light: #ddd4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc28f",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 143
  },
  "hsl": {
    "h": 49.355,
    "s": 38.272,
    "l": 68.235
  },
  "oklch": {
    "l": 0.81068,
    "c": 0.06858,
    "h": 97.4
  },
  "luminance": 0.53546
}

Semantic roles & 50–950 ramp

primary
#CDC28F
secondary
#5E6AA2
accent
#4AB134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC28F

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

Preview Lab → · Contrast checker → · Palette generator →

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