#CFD796#CFD796

#CFD796 is a very light, moderate yellow. Relative luminance 0.641; OKLCH L 85.7% C 0.085 H 113.9°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#CFD796
RGBrgb(207, 215, 150)
HSLhsl(67, 45%, 72%)
HSVhsv(67, 30%, 84%)
CMYKcmyk(3.7%, 0%, 30.2%, 15.7%)
CIE-LABlab(84.00, -13.03, 31.25)
CIE-LCHlch(84.00, 33.86, 112.64°)
OKLaboklab(85.75% -0.0346 0.078)
OKLCHoklch(85.75% 0.085 113.9)
XYZxyz(55.5376, 64.0688, 38.2890)
Luminance0.6407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD796 #9E96D7
analogous
#D7BF96 #CFD796 #AFD796
triadic
#CFD796 #96CFD7 #D796CF
tetradic
#CFD796 #96D7BF #9E96D7 #D796AF
square
#CFD796 #96D7BF #9E96D7 #D796AF
split-complementary
#CFD796 #96AFD7 #BF96D7
monochromatic
#A2B043 #BBC66A #CFD796 #E3E8C2 #F5F7E9

Accessibility & contrast

On white

1.52
#CFD796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#CFD796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD796
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD796#FFFFFF#000000##000000
##CFD7961.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0D192
Deuteranopia (green-blind)
#E0D299
Tritanopia (blue-blind)
#D7D0C6
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #cfd796;
/* rgb */ color: rgb(207, 215, 150);
/* oklch */ color: oklch(85.7% 0.085 113.9);
Tailwind
colors: {
  custom: {
    50: '#dee3b5',
    500: '#cfd796',
    950: '#000000',
  },
}
SCSS
$custom: #cfd796;
$custom-light: #dee3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd796",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 67.385,
    "s": 44.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.85747,
    "c": 0.08534,
    "h": 113.9
  },
  "luminance": 0.64068
}

Semantic roles & 50–950 ramp

primary
#CFD796
secondary
#6D63AE
accent
#2EB83F
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CFD796

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

Preview Lab → · Contrast checker → · Palette generator →

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