#CDC671#CDC671

#CDC671 is a light, moderate yellow. Relative luminance 0.546; OKLCH L 81.4% C 0.107 H 104.4°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#CDC671
RGBrgb(205, 198, 113)
HSLhsl(55, 48%, 62%)
HSVhsv(55, 45%, 80%)
CMYKcmyk(0%, 3.4%, 44.9%, 19.6%)
CIE-LABlab(78.79, -9.42, 43.28)
CIE-LCHlch(78.79, 44.30, 102.28°)
OKLaboklab(81.39% -0.0267 0.1041)
OKLCHoklch(81.39% 0.107 104.4)
XYZxyz(48.3526, 54.5609, 23.6038)
Luminance0.5456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC671 #7178CD
analogous
#CD9871 #CDC671 #A6CD71
triadic
#CDC671 #71CDC6 #C671CD
tetradic
#CDC671 #71CD98 #7178CD #CD71A6
square
#CDC671 #71CD98 #7178CD #CD71A6
split-complementary
#CDC671 #71A6CD #9871CD
monochromatic
#918A33 #BDB444 #CDC671 #DDD89E #EDEACC

Accessibility & contrast

On white

1.76
#CDC671 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#CDC671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC671
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC671#FFFFFF#000000##000000
##CDC6711.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C16A
Deuteranopia (green-blind)
#D6C575
Tritanopia (blue-blind)
#D9BCB2
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc671;
/* rgb */ color: rgb(205, 198, 113);
/* oklch */ color: oklch(81.4% 0.107 104.4);
Tailwind
colors: {
  custom: {
    50: '#ded79b',
    500: '#cdc671',
    950: '#000000',
  },
}
SCSS
$custom: #cdc671;
$custom-light: #ded79b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc671",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 113
  },
  "hsl": {
    "h": 55.435,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.81386,
    "c": 0.10742,
    "h": 104.4
  },
  "luminance": 0.5456
}

Semantic roles & 50–950 ramp

primary
#CDC671
secondary
#4B5197
accent
#35BB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC671

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

Preview Lab → · Contrast checker → · Palette generator →

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