#CFC781#CFC781

#CFC781 is a very light, moderate yellow. Relative luminance 0.557; OKLCH L 82.0% C 0.091 H 102.6°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#CFC781
RGBrgb(207, 199, 129)
HSLhsl(54, 45%, 66%)
HSVhsv(54, 38%, 81%)
CMYKcmyk(0%, 3.9%, 37.7%, 18.8%)
CIE-LABlab(79.44, -7.44, 36.06)
CIE-LCHlch(79.44, 36.82, 101.66°)
OKLaboklab(82.02% -0.0197 0.0885)
OKLCHoklch(82.02% 0.091 102.6)
XYZxyz(50.1188, 55.6985, 28.8754)
Luminance0.5570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC781 #8189CF
analogous
#CFA081 #CFC781 #B0CF81
triadic
#CFC781 #81CFC7 #C781CF
tetradic
#CFC781 #81CFA0 #8189CF #CF81B0
square
#CFC781 #81CFA0 #8189CF #CF81B0
split-complementary
#CFC781 #81B0CF #A081CF
monochromatic
#9B913B #BEB355 #CFC781 #E0DBAD #F1EEDA

Accessibility & contrast

On white

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

On black

12.14
#CFC781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC781
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC781#FFFFFF#000000##000000
##CFC7811.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C27C
Deuteranopia (green-blind)
#D6C784
Tritanopia (blue-blind)
#DABEB5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc781;
/* rgb */ color: rgb(207, 199, 129);
/* oklch */ color: oklch(82.0% 0.091 102.6);
Tailwind
colors: {
  custom: {
    50: '#dfd7a6',
    500: '#cfc781',
    950: '#000000',
  },
}
SCSS
$custom: #cfc781;
$custom-light: #dfd7a6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc781",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 129
  },
  "hsl": {
    "h": 53.846,
    "s": 44.828,
    "l": 65.882
  },
  "oklch": {
    "l": 0.82018,
    "c": 0.09071,
    "h": 102.6
  },
  "luminance": 0.55697
}

Semantic roles & 50–950 ramp

primary
#CFC781
secondary
#545CA0
accent
#3CB82E
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC781

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

Preview Lab → · Contrast checker → · Palette generator →

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