#CDC947#CDC947

#CDC947 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.5% C 0.148 H 107.6°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CDC947
RGBrgb(205, 201, 71)
HSLhsl(58, 57%, 54%)
HSVhsv(58, 65%, 80%)
CMYKcmyk(0%, 2%, 65.4%, 19.6%)
CIE-LABlab(79.16, -14.22, 62.81)
CIE-LCHlch(79.16, 64.41, 102.76°)
OKLaboklab(81.55% -0.0448 0.1415)
OKLCHoklch(81.55% 0.148 107.6)
XYZxyz(47.2025, 55.2089, 14.1299)
Luminance0.5521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC947 #474BCD
analogous
#CD8647 #CDC947 #8ECD47
triadic
#CDC947 #47CDC9 #C947CD
tetradic
#CDC947 #47CD86 #474BCD #CD478E
square
#CDC947 #47CD86 #474BCD #CD478E
split-complementary
#CDC947 #478ECD #8647CD
monochromatic
#797621 #A9A52E #CDC947 #DAD777 #E7E5A7

Accessibility & contrast

On white

1.74
#CDC947 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CDC947 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC947
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC947#FFFFFF#000000##000000
##CDC9471.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C135
Deuteranopia (green-blind)
#DCC64F
Tritanopia (blue-blind)
#DBBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc947;
/* rgb */ color: rgb(205, 201, 71);
/* oklch */ color: oklch(81.5% 0.148 107.6);
Tailwind
colors: {
  custom: {
    50: '#dfd981',
    500: '#cdc947',
    950: '#000000',
  },
}
SCSS
$custom: #cdc947;
$custom-light: #dfd981;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc947",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 71
  },
  "hsl": {
    "h": 58.209,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81546,
    "c": 0.14841,
    "h": 107.6
  },
  "luminance": 0.55207
}

Semantic roles & 50–950 ramp

primary
#CDC947
secondary
#373981
accent
#4CE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC947

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

Preview Lab → · Contrast checker → · Palette generator →

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