#CDC047#CDC047

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

Color values

HEX#CDC047
RGBrgb(205, 192, 71)
HSLhsl(54, 57%, 54%)
HSVhsv(54, 65%, 80%)
CMYKcmyk(0%, 6.3%, 65.4%, 19.6%)
CIE-LABlab(76.76, -9.66, 60.32)
CIE-LCHlch(76.76, 61.09, 99.09°)
OKLaboklab(79.64% -0.0319 0.1362)
OKLCHoklch(79.64% 0.14 103.2)
XYZxyz(45.1656, 51.1351, 13.4510)
Luminance0.5113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC047 #4754CD
analogous
#CD7D47 #CDC047 #97CD47
triadic
#CDC047 #47CDC0 #C047CD
tetradic
#CDC047 #47CD7D #4754CD #CD4797
square
#CDC047 #47CD7D #4754CD #CD4797
split-complementary
#CDC047 #4797CD #7D47CD
monochromatic
#797021 #A99D2E #CDC047 #DAD077 #E7E1A7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC047#FFFFFF#000000##000000
##CDC0471.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)
#D1BA37
Deuteranopia (green-blind)
#D5C04E
Tritanopia (blue-blind)
#DCB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc047;
/* rgb */ color: rgb(205, 192, 71);
/* oklch */ color: oklch(79.6% 0.140 103.2);
Tailwind
colors: {
  custom: {
    50: '#dfd280',
    500: '#cdc047',
    950: '#000000',
  },
}
SCSS
$custom: #cdc047;
$custom-light: #dfd280;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc047",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 54.179,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.79635,
    "c": 0.13992,
    "h": 103.2
  },
  "luminance": 0.51133
}

Semantic roles & 50–950 ramp

primary
#CDC047
secondary
#373E81
accent
#56E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC047

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

Preview Lab → · Contrast checker → · Palette generator →

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