#CDC140#CDC140

#CDC140 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.146 H 104.0°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#CDC140
RGBrgb(205, 193, 64)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 80%)
CMYKcmyk(0%, 5.9%, 68.8%, 19.6%)
CIE-LABlab(76.98, -10.56, 63.34)
CIE-LCHlch(76.98, 64.21, 99.46°)
OKLaboklab(79.79% -0.0352 0.1415)
OKLCHoklch(79.79% 0.146 104)
XYZxyz(45.1741, 51.4910, 12.4087)
Luminance0.5149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC140 #404CCD
analogous
#CD7B40 #CDC140 #92CD40
triadic
#CDC140 #40CDC1 #C140CD
tetradic
#CDC140 #40CD7B #404CCD #CD4092
square
#CDC140 #40CD7B #404CCD #CD4092
split-complementary
#CDC140 #4092CD #7B40CD
monochromatic
#746D1E #A59A2B #CDC140 #DAD171 #E6E0A1

Accessibility & contrast

On white

1.86
#CDC140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#CDC140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC140
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC140#FFFFFF#000000##000000
##CDC1401.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2D
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#DCB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc140;
/* rgb */ color: rgb(205, 193, 64);
/* oklch */ color: oklch(79.8% 0.146 104.0);
Tailwind
colors: {
  custom: {
    50: '#e0d37c',
    500: '#cdc140',
    950: '#000000',
  },
}
SCSS
$custom: #cdc140;
$custom-light: #e0d37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc140",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 54.894,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.79789,
    "c": 0.14576,
    "h": 104
  },
  "luminance": 0.51489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC140

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

Preview Lab → · Contrast checker → · Palette generator →

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