#CFC851#CFC851

#CFC851 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.140 H 105.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#CFC851
RGBrgb(207, 200, 81)
HSLhsl(57, 57%, 56%)
HSVhsv(57, 61%, 81%)
CMYKcmyk(0%, 3.4%, 60.9%, 18.8%)
CIE-LABlab(79.14, -12.26, 58.69)
CIE-LCHlch(79.14, 59.96, 101.80°)
OKLaboklab(81.59% -0.0383 0.1342)
OKLCHoklch(81.59% 0.14 105.9)
XYZxyz(47.8732, 55.1696, 15.9100)
Luminance0.5517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC851 #5158CF
analogous
#CF8951 #CFC851 #97CF51
triadic
#CFC851 #51CFC8 #C851CF
tetradic
#CFC851 #51CF89 #5158CF #CF5197
square
#CFC851 #51CF89 #5158CF #CF5197
split-complementary
#CFC851 #5197CF #8951CF
monochromatic
#827D24 #B2AB31 #CFC851 #DCD781 #E9E6B1

Accessibility & contrast

On white

1.75
#CFC851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#CFC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC851
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC851#FFFFFF#000000##000000
##CFC8511.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#DDBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc851;
/* rgb */ color: rgb(207, 200, 81);
/* oklch */ color: oklch(81.6% 0.140 105.9);
Tailwind
colors: {
  custom: {
    50: '#e1d887',
    500: '#cfc851',
    950: '#000000',
  },
}
SCSS
$custom: #cfc851;
$custom-light: #e1d887;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc851",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 56.667,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81594,
    "c": 0.13954,
    "h": 105.9
  },
  "luminance": 0.55168
}

Semantic roles & 50–950 ramp

primary
#CFC851
secondary
#3B3F89
accent
#50E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC851

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

Preview Lab → · Contrast checker → · Palette generator →

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