#CFC271#CFC271

#CFC271 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.103 H 100.3°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#CFC271
RGBrgb(207, 194, 113)
HSLhsl(52, 49%, 63%)
HSVhsv(52, 45%, 81%)
CMYKcmyk(0%, 6.3%, 45.4%, 18.8%)
CIE-LABlab(77.90, -6.55, 42.22)
CIE-LCHlch(77.90, 42.73, 98.82°)
OKLaboklab(80.72% -0.0185 0.1017)
OKLCHoklch(80.72% 0.103 100.3)
XYZxyz(48.0057, 53.0428, 23.3291)
Luminance0.5304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC271 #717ECF
analogous
#CF9371 #CFC271 #ADCF71
triadic
#CFC271 #71CFC2 #C271CF
tetradic
#CFC271 #71CF93 #717ECF #CF71AD
square
#CFC271 #71CF93 #717ECF #CF71AD
split-complementary
#CFC271 #71ADCF #9371CF
monochromatic
#948632 #C0AE43 #CFC271 #DED69F #EEE9CC

Accessibility & contrast

On white

1.81
#CFC271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#CFC271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC271
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC271#FFFFFF#000000##000000
##CFC2711.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D4C374
Tritanopia (blue-blind)
#DCB8AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc271;
/* rgb */ color: rgb(207, 194, 113);
/* oklch */ color: oklch(80.7% 0.103 100.3);
Tailwind
colors: {
  custom: {
    50: '#dfd49b',
    500: '#cfc271',
    950: '#000000',
  },
}
SCSS
$custom: #cfc271;
$custom-light: #dfd49b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc271",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 51.702,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.80722,
    "c": 0.10332,
    "h": 100.3
  },
  "luminance": 0.53041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC271

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

Preview Lab → · Contrast checker → · Palette generator →

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