#CDC240#CDC240

#CDC240 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.147 H 104.5°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#CDC240
RGBrgb(205, 194, 64)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 80%)
CMYKcmyk(0%, 5.4%, 68.8%, 19.6%)
CIE-LABlab(77.24, -11.07, 63.60)
CIE-LCHlch(77.24, 64.56, 99.87°)
OKLaboklab(80% -0.0366 0.142)
OKLCHoklch(80% 0.147 104.5)
XYZxyz(45.3959, 51.9346, 12.4826)
Luminance0.5193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC240 #404BCD
analogous
#CD7B40 #CDC240 #92CD40
triadic
#CDC240 #40CDC2 #C240CD
tetradic
#CDC240 #40CD7B #404BCD #CD4092
square
#CDC240 #40CD7B #404BCD #CD4092
split-complementary
#CDC240 #4092CD #7B40CD
monochromatic
#746D1E #A59B2B #CDC240 #DAD171 #E6E1A1

Accessibility & contrast

On white

1.84
#CDC240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#CDC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC240
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC240#FFFFFF#000000##000000
##CDC2401.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2C
Deuteranopia (green-blind)
#D7C148
Tritanopia (blue-blind)
#DCB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc240;
/* rgb */ color: rgb(205, 194, 64);
/* oklch */ color: oklch(80.0% 0.147 104.5);
Tailwind
colors: {
  custom: {
    50: '#e0d47c',
    500: '#cdc240',
    950: '#000000',
  },
}
SCSS
$custom: #cdc240;
$custom-light: #e0d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc240",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 55.319,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80001,
    "c": 0.14665,
    "h": 104.5
  },
  "luminance": 0.51933
}

Semantic roles & 50–950 ramp

primary
#CDC240
secondary
#343A7D
accent
#52E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC240

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

Preview Lab → · Contrast checker → · Palette generator →

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