#CDC34F#CDC34F

#CDC34F is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.3% C 0.136 H 104.4°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#CDC34F
RGBrgb(205, 195, 79)
HSLhsl(55, 56%, 56%)
HSVhsv(55, 61%, 80%)
CMYKcmyk(0%, 4.9%, 61.5%, 19.6%)
CIE-LABlab(77.62, -10.69, 57.86)
CIE-LCHlch(77.62, 58.84, 100.47°)
OKLaboklab(80.34% -0.0339 0.1322)
OKLCHoklch(80.34% 0.136 104.4)
XYZxyz(46.1049, 52.5755, 15.1151)
Luminance0.5257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC34F #4F59CD
analogous
#CD844F #CDC34F #98CD4F
triadic
#CDC34F #4FCDC3 #C34FCD
tetradic
#CDC34F #4FCD84 #4F59CD #CD4F98
square
#CDC34F #4FCD84 #4F59CD #CD4F98
split-complementary
#CDC34F #4F98CD #844FCD
monochromatic
#7E7724 #AEA431 #CDC34F #DBD37F #E8E3AE

Accessibility & contrast

On white

1.82
#CDC34F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.51
#CDC34F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC34F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC34F#FFFFFF#000000##000000
##CDC34F1.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD41
Deuteranopia (green-blind)
#D7C256
Tritanopia (blue-blind)
#DBB7AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc34f;
/* rgb */ color: rgb(205, 195, 79);
/* oklch */ color: oklch(80.3% 0.136 104.4);
Tailwind
colors: {
  custom: {
    50: '#dfd485',
    500: '#cdc34f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc34f;
$custom-light: #dfd485;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc34f",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 79
  },
  "hsl": {
    "h": 55.238,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80342,
    "c": 0.13649,
    "h": 104.4
  },
  "luminance": 0.52574
}

Semantic roles & 50–950 ramp

primary
#CDC34F
secondary
#3B4186
accent
#55DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC34F

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

Preview Lab → · Contrast checker → · Palette generator →

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