#CFC170#CFC170

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

Color values

HEX#CFC170
RGBrgb(207, 193, 112)
HSLhsl(51, 50%, 63%)
HSVhsv(51, 46%, 81%)
CMYKcmyk(0%, 6.8%, 45.9%, 18.8%)
CIE-LABlab(77.62, -6.14, 42.38)
CIE-LCHlch(77.62, 42.82, 98.24°)
OKLaboklab(80.5% -0.0174 0.1019)
OKLCHoklch(80.5% 0.103 99.7)
XYZxyz(47.7280, 52.5768, 22.9603)
Luminance0.5258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC170 #707ECF
analogous
#CF9270 #CFC170 #ADCF70
triadic
#CFC170 #70CFC1 #C170CF
tetradic
#CFC170 #70CF92 #707ECF #CF70AD
square
#CFC170 #70CF92 #707ECF #CF70AD
split-complementary
#CFC170 #70ADCF #9270CF
monochromatic
#938531 #C0AD42 #CFC170 #DED59E #EEE9CC

Accessibility & contrast

On white

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

On black

11.52
#CFC170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC170
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC170#FFFFFF#000000##000000
##CFC1701.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD69
Deuteranopia (green-blind)
#D3C273
Tritanopia (blue-blind)
#DCB7AE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc170;
/* rgb */ color: rgb(207, 193, 112);
/* oklch */ color: oklch(80.5% 0.103 99.7);
Tailwind
colors: {
  custom: {
    50: '#dfd39a',
    500: '#cfc170',
    950: '#000000',
  },
}
SCSS
$custom: #cfc170;
$custom-light: #dfd39a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc170",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 112
  },
  "hsl": {
    "h": 51.158,
    "s": 49.738,
    "l": 62.549
  },
  "oklch": {
    "l": 0.805,
    "c": 0.10342,
    "h": 99.7
  },
  "luminance": 0.52575
}

Semantic roles & 50–950 ramp

primary
#CFC170
secondary
#4A5699
accent
#3EBD28
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC170

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

Preview Lab → · Contrast checker → · Palette generator →

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