#CFC173#CFC173

#CFC173 is a light, moderate yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.100 H 99.3°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#CFC173
RGBrgb(207, 193, 115)
HSLhsl(51, 49%, 63%)
HSVhsv(51, 44%, 81%)
CMYKcmyk(0%, 6.8%, 44.4%, 18.8%)
CIE-LABlab(77.66, -5.84, 40.92)
CIE-LCHlch(77.66, 41.34, 98.12°)
OKLaboklab(80.55% -0.0163 0.0989)
OKLCHoklch(80.55% 0.1 99.3)
XYZxyz(47.8978, 52.6447, 23.8547)
Luminance0.5264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC173 #7381CF
analogous
#CF9373 #CFC173 #AFCF73
triadic
#CFC173 #73CFC1 #C173CF
tetradic
#CFC173 #73CF93 #7381CF #CF73AF
square
#CFC173 #73CF93 #7381CF #CF73AF
split-complementary
#CFC173 #73AFCF #9373CF
monochromatic
#958633 #BFAD45 #CFC173 #DFD5A1 #EEE9CE

Accessibility & contrast

On white

1.82
#CFC173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.53
#CFC173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC173
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC173#FFFFFF#000000##000000
##CFC1731.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD6D
Deuteranopia (green-blind)
#D3C276
Tritanopia (blue-blind)
#DBB7AE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc173;
/* rgb */ color: rgb(207, 193, 115);
/* oklch */ color: oklch(80.5% 0.100 99.3);
Tailwind
colors: {
  custom: {
    50: '#dfd39c',
    500: '#cfc173',
    950: '#000000',
  },
}
SCSS
$custom: #cfc173;
$custom-light: #dfd39c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc173",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 115
  },
  "hsl": {
    "h": 50.87,
    "s": 48.936,
    "l": 63.137
  },
  "oklch": {
    "l": 0.80545,
    "c": 0.1002,
    "h": 99.3
  },
  "luminance": 0.52643
}

Semantic roles & 50–950 ramp

primary
#CFC173
secondary
#4C589B
accent
#40BC29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC173

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

Preview Lab → · Contrast checker → · Palette generator →

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