#CDC048#CDC048

#CDC048 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.6% C 0.139 H 103.1°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#CDC048
RGBrgb(205, 192, 72)
HSLhsl(54, 57%, 54%)
HSVhsv(54, 65%, 80%)
CMYKcmyk(0%, 6.3%, 64.9%, 19.6%)
CIE-LABlab(76.77, -9.60, 59.92)
CIE-LCHlch(76.77, 60.68, 99.10°)
OKLaboklab(79.64% -0.0316 0.1355)
OKLCHoklch(79.64% 0.139 103.1)
XYZxyz(45.1980, 51.1481, 13.6214)
Luminance0.5115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC048 #4855CD
analogous
#CD7D48 #CDC048 #98CD48
triadic
#CDC048 #48CDC0 #C048CD
tetradic
#CDC048 #48CD7D #4855CD #CD4898
square
#CDC048 #48CD7D #4855CD #CD4898
split-complementary
#CDC048 #4898CD #7D48CD
monochromatic
#797121 #A99D2E #CDC048 #DAD178 #E7E1A8

Accessibility & contrast

On white

1.87
#CDC048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#CDC048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC048
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC048#FFFFFF#000000##000000
##CDC0481.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA39
Deuteranopia (green-blind)
#D5C04F
Tritanopia (blue-blind)
#DCB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc048;
/* rgb */ color: rgb(205, 192, 72);
/* oklch */ color: oklch(79.6% 0.139 103.1);
Tailwind
colors: {
  custom: {
    50: '#dfd281',
    500: '#cdc048',
    950: '#000000',
  },
}
SCSS
$custom: #cdc048;
$custom-light: #dfd281;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc048",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 54.135,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79644,
    "c": 0.13916,
    "h": 103.1
  },
  "luminance": 0.51146
}

Semantic roles & 50–950 ramp

primary
#CDC048
secondary
#383F82
accent
#56E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC048

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

Preview Lab → · Contrast checker → · Palette generator →

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