#CFC381#CFC381

#CFC381 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.087 H 99.2°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#CFC381
RGBrgb(207, 195, 129)
HSLhsl(51, 45%, 66%)
HSVhsv(51, 38%, 81%)
CMYKcmyk(0%, 5.8%, 37.7%, 18.8%)
CIE-LABlab(78.39, -5.37, 34.70)
CIE-LCHlch(78.39, 35.12, 98.80°)
OKLaboklab(81.19% -0.0138 0.0854)
OKLCHoklch(81.19% 0.087 99.2)
XYZxyz(49.2105, 53.8820, 28.5726)
Luminance0.5388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC381 #818DCF
analogous
#CF9C81 #CFC381 #B4CF81
triadic
#CFC381 #81CFC3 #C381CF
tetradic
#CFC381 #81CF9C #818DCF #CF81B4
square
#CFC381 #81CF9C #818DCF #CF81B4
split-complementary
#CFC381 #81B4CF #9C81CF
monochromatic
#9B8C3B #BEAE55 #CFC381 #E0D8AD #F1EDDA

Accessibility & contrast

On white

1.78
#CFC381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#CFC381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC381
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC381#FFFFFF#000000##000000
##CFC3811.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBF7C
Deuteranopia (green-blind)
#D3C483
Tritanopia (blue-blind)
#DABAB2
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc381;
/* rgb */ color: rgb(207, 195, 129);
/* oklch */ color: oklch(81.2% 0.087 99.2);
Tailwind
colors: {
  custom: {
    50: '#dfd5a6',
    500: '#cfc381',
    950: '#000000',
  },
}
SCSS
$custom: #cfc381;
$custom-light: #dfd5a6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc381",
  "rgb": {
    "r": 207,
    "g": 195,
    "b": 129
  },
  "hsl": {
    "h": 50.769,
    "s": 44.828,
    "l": 65.882
  },
  "oklch": {
    "l": 0.81187,
    "c": 0.08652,
    "h": 99.2
  },
  "luminance": 0.53881
}

Semantic roles & 50–950 ramp

primary
#CFC381
secondary
#5460A0
accent
#43B82E
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC381

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

Preview Lab → · Contrast checker → · Palette generator →

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