#CDC840#CDC840

#CDC840 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.3% C 0.152 H 107.3°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#CDC840
RGBrgb(205, 200, 64)
HSLhsl(58, 59%, 53%)
HSVhsv(58, 69%, 80%)
CMYKcmyk(0%, 2.4%, 68.8%, 19.6%)
CIE-LABlab(78.84, -14.10, 65.20)
CIE-LCHlch(78.84, 66.71, 102.21°)
OKLaboklab(81.28% -0.0452 0.1454)
OKLCHoklch(81.28% 0.152 107.3)
XYZxyz(46.7583, 54.6594, 12.9368)
Luminance0.5466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC840 #4045CD
analogous
#CD8140 #CDC840 #8CCD40
triadic
#CDC840 #40CDC8 #C840CD
tetradic
#CDC840 #40CD81 #4045CD #CD408C
square
#CDC840 #40CD81 #4045CD #CD408C
split-complementary
#CDC840 #408CCD #8140CD
monochromatic
#74711E #A5A02B #CDC840 #DAD671 #E6E4A1

Accessibility & contrast

On white

1.76
#CDC840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#CDC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC840
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC840#FFFFFF#000000##000000
##CDC8401.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C02B
Deuteranopia (green-blind)
#DBC649
Tritanopia (blue-blind)
#DCBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc840;
/* rgb */ color: rgb(205, 200, 64);
/* oklch */ color: oklch(81.3% 0.152 107.3);
Tailwind
colors: {
  custom: {
    50: '#e0d87d',
    500: '#cdc840',
    950: '#000000',
  },
}
SCSS
$custom: #cdc840;
$custom-light: #e0d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc840",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 57.872,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81278,
    "c": 0.15225,
    "h": 107.3
  },
  "luminance": 0.54658
}

Semantic roles & 50–950 ramp

primary
#CDC840
secondary
#34377D
accent
#4CE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC840

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

Preview Lab → · Contrast checker → · Palette generator →

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