#CDC25F#CDC25F

#CDC25F is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.121 H 103.0°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#CDC25F
RGBrgb(205, 194, 95)
HSLhsl(54, 52%, 59%)
HSVhsv(54, 54%, 80%)
CMYKcmyk(0%, 5.4%, 53.7%, 19.6%)
CIE-LABlab(77.51, -9.00, 50.49)
CIE-LCHlch(77.51, 51.28, 100.10°)
OKLaboklab(80.31% -0.0273 0.1184)
OKLCHoklch(80.31% 0.121 103)
XYZxyz(46.5356, 52.3905, 18.4853)
Luminance0.5239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC25F #5F6ACD
analogous
#CD8B5F #CDC25F #A1CD5F
triadic
#CDC25F #5FCDC2 #C25FCD
tetradic
#CDC25F #5FCD8B #5F6ACD #CD5FA1
square
#CDC25F #5FCD8B #5F6ACD #CD5FA1
split-complementary
#CDC25F #5FA1CD #8B5FCD
monochromatic
#877E2A #B6A939 #CDC25F #DCD48E #EAE6BC

Accessibility & contrast

On white

1.83
#CDC25F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#CDC25F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC25F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC25F#FFFFFF#000000##000000
##CDC25F1.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC56
Deuteranopia (green-blind)
#D5C264
Tritanopia (blue-blind)
#DAB7AC
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc25f;
/* rgb */ color: rgb(205, 194, 95);
/* oklch */ color: oklch(80.3% 0.121 103.0);
Tailwind
colors: {
  custom: {
    50: '#ded48f',
    500: '#cdc25f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc25f;
$custom-light: #ded48f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc25f",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 95
  },
  "hsl": {
    "h": 54,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.80305,
    "c": 0.12146,
    "h": 103
  },
  "luminance": 0.52389
}

Semantic roles & 50–950 ramp

primary
#CDC25F
secondary
#424A8E
accent
#5ADC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC25F

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

Preview Lab → · Contrast checker → · Palette generator →

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