#CDC672#CDC672

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

Color values

HEX#CDC672
RGBrgb(205, 198, 114)
HSLhsl(55, 48%, 63%)
HSVhsv(55, 44%, 80%)
CMYKcmyk(0%, 3.4%, 44.4%, 19.6%)
CIE-LABlab(78.80, -9.32, 42.80)
CIE-LCHlch(78.80, 43.81, 102.29°)
OKLaboklab(81.4% -0.0263 0.103)
OKLCHoklch(81.4% 0.106 104.3)
XYZxyz(48.4092, 54.5835, 23.9019)
Luminance0.5458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC672 #7279CD
analogous
#CD9972 #CDC672 #A6CD72
triadic
#CDC672 #72CDC6 #C672CD
tetradic
#CDC672 #72CD99 #7279CD #CD72A6
square
#CDC672 #72CD99 #7279CD #CD72A6
split-complementary
#CDC672 #72A6CD #9972CD
monochromatic
#918A33 #BDB445 #CDC672 #DDD89F #EDEBCC

Accessibility & contrast

On white

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

On black

11.92
#CDC672 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC672
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC672#FFFFFF#000000##000000
##CDC6721.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc672;
/* rgb */ color: rgb(205, 198, 114);
/* oklch */ color: oklch(81.4% 0.106 104.3);
Tailwind
colors: {
  custom: {
    50: '#ded79c',
    500: '#cdc672',
    950: '#000000',
  },
}
SCSS
$custom: #cdc672;
$custom-light: #ded79c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc672",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 114
  },
  "hsl": {
    "h": 55.385,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.814,
    "c": 0.10634,
    "h": 104.3
  },
  "luminance": 0.54582
}

Semantic roles & 50–950 ramp

primary
#CDC672
secondary
#4C5297
accent
#36BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC672

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

Preview Lab → · Contrast checker → · Palette generator →

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