#CFC751#CFC751

#CFC751 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.139 H 105.4°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#CFC751
RGBrgb(207, 199, 81)
HSLhsl(56, 57%, 56%)
HSVhsv(56, 61%, 81%)
CMYKcmyk(0%, 3.9%, 60.9%, 18.8%)
CIE-LABlab(78.87, -11.75, 58.40)
CIE-LCHlch(78.87, 59.57, 101.38°)
OKLaboklab(81.38% -0.0368 0.1336)
OKLCHoklch(81.38% 0.139 105.4)
XYZxyz(47.6424, 54.7079, 15.8331)
Luminance0.5471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC751 #5159CF
analogous
#CF8851 #CFC751 #98CF51
triadic
#CFC751 #51CFC7 #C751CF
tetradic
#CFC751 #51CF88 #5159CF #CF5198
square
#CFC751 #51CF88 #5159CF #CF5198
split-complementary
#CFC751 #5198CF #8851CF
monochromatic
#827C24 #B2AA31 #CFC751 #DCD681 #E9E6B1

Accessibility & contrast

On white

1.76
#CFC751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#CFC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC751
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC751#FFFFFF#000000##000000
##CFC7511.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C043
Deuteranopia (green-blind)
#DAC658
Tritanopia (blue-blind)
#DDBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc751;
/* rgb */ color: rgb(207, 199, 81);
/* oklch */ color: oklch(81.4% 0.139 105.4);
Tailwind
colors: {
  custom: {
    50: '#e1d787',
    500: '#cfc751',
    950: '#000000',
  },
}
SCSS
$custom: #cfc751;
$custom-light: #e1d787;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc751",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 56.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81382,
    "c": 0.13857,
    "h": 105.4
  },
  "luminance": 0.54706
}

Semantic roles & 50–950 ramp

primary
#CFC751
secondary
#3B4089
accent
#51E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC751

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

Preview Lab → · Contrast checker → · Palette generator →

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