#CFD798#CFD798

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

Color values

HEX#CFD798
RGBrgb(207, 215, 152)
HSLhsl(68, 44%, 72%)
HSVhsv(68, 29%, 84%)
CMYKcmyk(3.7%, 0%, 29.3%, 15.7%)
CIE-LABlab(84.04, -12.77, 30.26)
CIE-LCHlch(84.04, 32.85, 112.88°)
OKLaboklab(85.79% -0.0338 0.0757)
OKLCHoklch(85.79% 0.083 114.1)
XYZxyz(55.7000, 64.1338, 39.1444)
Luminance0.6413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD798 #A098D7
analogous
#D7C098 #CFD798 #B0D798
triadic
#CFD798 #98CFD7 #D798CF
tetradic
#CFD798 #98D7C0 #A098D7 #D798B0
square
#CFD798 #98D7C0 #A098D7 #D798B0
split-complementary
#CFD798 #98B0D7 #C098D7
monochromatic
#A2B044 #BAC66C #CFD798 #E4E8C4 #F5F6E9

Accessibility & contrast

On white

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

On black

13.83
#CFD798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD798
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD798#FFFFFF#000000##000000
##CFD7981.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0D194
Deuteranopia (green-blind)
#E0D29B
Tritanopia (blue-blind)
#D6D0C7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #cfd798;
/* rgb */ color: rgb(207, 215, 152);
/* oklch */ color: oklch(85.8% 0.083 114.1);
Tailwind
colors: {
  custom: {
    50: '#dee3b6',
    500: '#cfd798',
    950: '#000000',
  },
}
SCSS
$custom: #cfd798;
$custom-light: #dee3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd798",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 67.619,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.85785,
    "c": 0.08292,
    "h": 114.1
  },
  "luminance": 0.64133
}

Semantic roles & 50–950 ramp

primary
#CFD798
secondary
#6F65AE
accent
#2EB740
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CFD798

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

Preview Lab → · Contrast checker → · Palette generator →

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