#CDC754#CDC754

#CDC754 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.2% C 0.136 H 106.3°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#CDC754
RGBrgb(205, 199, 84)
HSLhsl(57, 55%, 57%)
HSVhsv(57, 59%, 80%)
CMYKcmyk(0%, 2.9%, 59%, 19.6%)
CIE-LABlab(78.73, -12.38, 56.89)
CIE-LCHlch(78.73, 58.23, 102.28°)
OKLaboklab(81.24% -0.0382 0.1308)
OKLCHoklch(81.24% 0.136 106.3)
XYZxyz(47.2020, 54.4676, 16.4127)
Luminance0.5447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC754 #545ACD
analogous
#CD8B54 #CDC754 #97CD54
triadic
#CDC754 #54CDC7 #C754CD
tetradic
#CDC754 #54CD8B #545ACD #CD5497
square
#CDC754 #54CD8B #545ACD #CD5497
split-complementary
#CDC754 #5497CD #8B54CD
monochromatic
#817C26 #B0AA34 #CDC754 #DBD783 #E9E6B3

Accessibility & contrast

On white

1.77
#CDC754 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#CDC754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC754
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC754#FFFFFF#000000##000000
##CDC7541.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc754;
/* rgb */ color: rgb(205, 199, 84);
/* oklch */ color: oklch(81.2% 0.136 106.3);
Tailwind
colors: {
  custom: {
    50: '#dfd788',
    500: '#cdc754',
    950: '#000000',
  },
}
SCSS
$custom: #cdc754;
$custom-light: #dfd788;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc754",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 84
  },
  "hsl": {
    "h": 57.025,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81239,
    "c": 0.13627,
    "h": 106.3
  },
  "luminance": 0.54466
}

Semantic roles & 50–950 ramp

primary
#CDC754
secondary
#3D4188
accent
#51DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC754

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

Preview Lab → · Contrast checker → · Palette generator →

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