#CDC751#CDC751

#CDC751 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.2% C 0.139 H 106.4°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#CDC751
RGBrgb(205, 199, 81)
HSLhsl(57, 55%, 56%)
HSVhsv(57, 60%, 80%)
CMYKcmyk(0%, 2.9%, 60.5%, 19.6%)
CIE-LABlab(78.71, -12.59, 58.17)
CIE-LCHlch(78.71, 59.52, 102.21°)
OKLaboklab(81.21% -0.0391 0.1332)
OKLCHoklch(81.21% 0.139 106.4)
XYZxyz(47.0870, 54.4216, 15.8070)
Luminance0.5442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC751 #5157CD
analogous
#CD8951 #CDC751 #95CD51
triadic
#CDC751 #51CDC7 #C751CD
tetradic
#CDC751 #51CD89 #5157CD #CD5195
square
#CDC751 #51CD89 #5157CD #CD5195
split-complementary
#CDC751 #5195CD #8951CD
monochromatic
#7F7B25 #AFA932 #CDC751 #DBD681 #E8E6B0

Accessibility & contrast

On white

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

On black

11.88
#CDC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC751
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC751#FFFFFF#000000##000000
##CDC7511.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc751;
/* rgb */ color: rgb(205, 199, 81);
/* oklch */ color: oklch(81.2% 0.139 106.4);
Tailwind
colors: {
  custom: {
    50: '#dfd787',
    500: '#cdc751',
    950: '#000000',
  },
}
SCSS
$custom: #cdc751;
$custom-light: #dfd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc751",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 57.097,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8121,
    "c": 0.13877,
    "h": 106.4
  },
  "luminance": 0.5442
}

Semantic roles & 50–950 ramp

primary
#CDC751
secondary
#3B3F87
accent
#50DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC751

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

Preview Lab → · Contrast checker → · Palette generator →

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