#CFC282#CFC282

#CFC282 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.084 H 98.1°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#CFC282
RGBrgb(207, 194, 130)
HSLhsl(50, 45%, 66%)
HSVhsv(50, 37%, 81%)
CMYKcmyk(0%, 6.3%, 37.2%, 18.8%)
CIE-LABlab(78.15, -4.74, 33.87)
CIE-LCHlch(78.15, 34.20, 97.97°)
OKLaboklab(81% -0.0119 0.0835)
OKLCHoklch(81% 0.084 98.1)
XYZxyz(49.0540, 53.4621, 28.8500)
Luminance0.5346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC282 #828FCF
analogous
#CF9B82 #CFC282 #B5CF82
triadic
#CFC282 #82CFC2 #C282CF
tetradic
#CFC282 #82CF9B #828FCF #CF82B5
square
#CFC282 #82CF9B #828FCF #CF82B5
split-complementary
#CFC282 #82B5CF #9B82CF
monochromatic
#9B8B3C #BEAC56 #CFC282 #E0D8AE #F1EDDA

Accessibility & contrast

On white

1.80
#CFC282 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#CFC282 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC282
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC282#FFFFFF#000000##000000
##CFC2821.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBE7D
Deuteranopia (green-blind)
#D2C384
Tritanopia (blue-blind)
#DAB9B2
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc282;
/* rgb */ color: rgb(207, 194, 130);
/* oklch */ color: oklch(81.0% 0.084 98.1);
Tailwind
colors: {
  custom: {
    50: '#dfd4a7',
    500: '#cfc282',
    950: '#000000',
  },
}
SCSS
$custom: #cfc282;
$custom-light: #dfd4a7;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc282",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 130
  },
  "hsl": {
    "h": 49.87,
    "s": 44.509,
    "l": 66.078
  },
  "oklch": {
    "l": 0.80998,
    "c": 0.08435,
    "h": 98.1
  },
  "luminance": 0.53461
}

Semantic roles & 50–950 ramp

primary
#CFC282
secondary
#5461A1
accent
#45B82E
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC282

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

Preview Lab → · Contrast checker → · Palette generator →

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