#CDC848#CDC848

#CDC848 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.3% C 0.147 H 107.1°. Best body text is #000000 at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#CDC848
RGBrgb(205, 200, 72)
HSLhsl(58, 57%, 54%)
HSVhsv(58, 65%, 80%)
CMYKcmyk(0%, 2.4%, 64.9%, 19.6%)
CIE-LABlab(78.90, -13.66, 62.14)
CIE-LCHlch(78.90, 63.63, 102.40°)
OKLaboklab(81.34% -0.0431 0.1402)
OKLCHoklch(81.34% 0.147 107.1)
XYZxyz(47.0025, 54.7571, 14.2229)
Luminance0.5476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC848 #484DCD
analogous
#CD8548 #CDC848 #90CD48
triadic
#CDC848 #48CDC8 #C848CD
tetradic
#CDC848 #48CD85 #484DCD #CD4890
square
#CDC848 #48CD85 #484DCD #CD4890
split-complementary
#CDC848 #4890CD #8548CD
monochromatic
#797621 #A9A52E #CDC848 #DAD678 #E7E5A8

Accessibility & contrast

On white

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

On black

11.95
#CDC848 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC848
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC848#FFFFFF#000000##000000
##CDC8481.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C137
Deuteranopia (green-blind)
#DBC650
Tritanopia (blue-blind)
#DBBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc848;
/* rgb */ color: rgb(205, 200, 72);
/* oklch */ color: oklch(81.3% 0.147 107.1);
Tailwind
colors: {
  custom: {
    50: '#dfd881',
    500: '#cdc848',
    950: '#000000',
  },
}
SCSS
$custom: #cdc848;
$custom-light: #dfd881;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc848",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 72
  },
  "hsl": {
    "h": 57.744,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81341,
    "c": 0.1467,
    "h": 107.1
  },
  "luminance": 0.54756
}

Semantic roles & 50–950 ramp

primary
#CDC848
secondary
#383A82
accent
#4DE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC848

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

Preview Lab → · Contrast checker → · Palette generator →

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