#CFC171#CFC171

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

Color values

HEX#CFC171
RGBrgb(207, 193, 113)
HSLhsl(51, 49%, 63%)
HSVhsv(51, 45%, 81%)
CMYKcmyk(0%, 6.8%, 45.4%, 18.8%)
CIE-LABlab(77.64, -6.04, 41.89)
CIE-LCHlch(77.64, 42.33, 98.20°)
OKLaboklab(80.51% -0.017 0.1009)
OKLCHoklch(80.51% 0.102 99.6)
XYZxyz(47.7839, 52.5992, 23.2552)
Luminance0.5260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC171 #717FCF
analogous
#CF9271 #CFC171 #AECF71
triadic
#CFC171 #71CFC1 #C171CF
tetradic
#CFC171 #71CF92 #717FCF #CF71AE
square
#CFC171 #71CF92 #717FCF #CF71AE
split-complementary
#CFC171 #71AECF #9271CF
monochromatic
#948532 #C0AD43 #CFC171 #DED59F #EEE9CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFC171#FFFFFF#000000##000000
##CFC1711.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)
#CFBD6B
Deuteranopia (green-blind)
#D3C274
Tritanopia (blue-blind)
#DCB7AE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc171;
/* rgb */ color: rgb(207, 193, 113);
/* oklch */ color: oklch(80.5% 0.102 99.6);
Tailwind
colors: {
  custom: {
    50: '#dfd39b',
    500: '#cfc171',
    950: '#000000',
  },
}
SCSS
$custom: #cfc171;
$custom-light: #dfd39b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc171",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 113
  },
  "hsl": {
    "h": 51.064,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.80514,
    "c": 0.10236,
    "h": 99.6
  },
  "luminance": 0.52598
}

Semantic roles & 50–950 ramp

primary
#CFC171
secondary
#4B569A
accent
#3FBD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC171

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

Preview Lab → · Contrast checker → · Palette generator →

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