#CFD797#CFD797

#CFD797 is a very light, moderate yellow. Relative luminance 0.641; OKLCH L 85.8% C 0.084 H 114.0°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#CFD797
RGBrgb(207, 215, 151)
HSLhsl(68, 44%, 72%)
HSVhsv(68, 30%, 84%)
CMYKcmyk(3.7%, 0%, 29.8%, 15.7%)
CIE-LABlab(84.02, -12.90, 30.76)
CIE-LCHlch(84.02, 33.35, 112.76°)
OKLaboklab(85.77% -0.0342 0.0769)
OKLCHoklch(85.77% 0.084 114)
XYZxyz(55.6184, 64.1012, 38.7149)
Luminance0.6410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD797 #9F97D7
analogous
#D7BF97 #CFD797 #AFD797
triadic
#CFD797 #97CFD7 #D797CF
tetradic
#CFD797 #97D7BF #9F97D7 #D797AF
square
#CFD797 #97D7BF #9F97D7 #D797AF
split-complementary
#CFD797 #97AFD7 #BF97D7
monochromatic
#A2B044 #BBC66B #CFD797 #E3E8C3 #F5F6E9

Accessibility & contrast

On white

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

On black

13.82
#CFD797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD797
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD797#FFFFFF#000000##000000
##CFD7971.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0D193
Deuteranopia (green-blind)
#E0D29A
Tritanopia (blue-blind)
#D6D0C6
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #cfd797;
/* rgb */ color: rgb(207, 215, 151);
/* oklch */ color: oklch(85.8% 0.084 114.0);
Tailwind
colors: {
  custom: {
    50: '#dee3b6',
    500: '#cfd797',
    950: '#000000',
  },
}
SCSS
$custom: #cfd797;
$custom-light: #dee3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd797",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 67.5,
    "s": 44.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.85766,
    "c": 0.08413,
    "h": 114
  },
  "luminance": 0.64101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFD797

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

Preview Lab → · Contrast checker → · Palette generator →

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