#CFC951#CFC951

#CFC951 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.141 H 106.4°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CFC951
RGBrgb(207, 201, 81)
HSLhsl(57, 57%, 56%)
HSVhsv(57, 61%, 81%)
CMYKcmyk(0%, 2.9%, 60.9%, 18.8%)
CIE-LABlab(79.41, -12.77, 58.98)
CIE-LCHlch(79.41, 60.35, 102.21°)
OKLaboklab(81.81% -0.0397 0.1348)
OKLCHoklch(81.81% 0.141 106.4)
XYZxyz(48.1056, 55.6343, 15.9875)
Luminance0.5563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC951 #5157CF
analogous
#CF8A51 #CFC951 #96CF51
triadic
#CFC951 #51CFC9 #C951CF
tetradic
#CFC951 #51CF8A #5157CF #CF5196
square
#CFC951 #51CF8A #5157CF #CF5196
split-complementary
#CFC951 #5196CF #8A51CF
monochromatic
#827D24 #B2AC31 #CFC951 #DCD881 #E9E7B1

Accessibility & contrast

On white

1.73
#CFC951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#CFC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC951
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC951#FFFFFF#000000##000000
##CFC9511.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C243
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#DDBDB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc951;
/* rgb */ color: rgb(207, 201, 81);
/* oklch */ color: oklch(81.8% 0.141 106.4);
Tailwind
colors: {
  custom: {
    50: '#e1d987',
    500: '#cfc951',
    950: '#000000',
  },
}
SCSS
$custom: #cfc951;
$custom-light: #e1d987;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc951",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 57.143,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81806,
    "c": 0.14054,
    "h": 106.4
  },
  "luminance": 0.55633
}

Semantic roles & 50–950 ramp

primary
#CFC951
secondary
#3B3F89
accent
#4FE048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC951

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

Preview Lab → · Contrast checker → · Palette generator →

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