#CFD998#CFD998

#CFD998 is a very light, moderate yellow. Relative luminance 0.652; OKLCH L 86.2% C 0.086 H 115.3°. Best body text is #000000 at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#CFD998
RGBrgb(207, 217, 152)
HSLhsl(69, 46%, 72%)
HSVhsv(69, 30%, 85%)
CMYKcmyk(4.6%, 0%, 30%, 14.9%)
CIE-LABlab(84.57, -13.78, 30.97)
CIE-LCHlch(84.57, 33.90, 113.98°)
OKLaboklab(86.21% -0.0366 0.0774)
OKLCHoklch(86.21% 0.086 115.3)
XYZxyz(56.2124, 65.1586, 39.3152)
Luminance0.6516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD998 #A298D9
analogous
#D9C398 #CFD998 #AED998
triadic
#CFD998 #98CFD9 #D998CF
tetradic
#CFD998 #98D9C3 #A298D9 #D998AE
square
#CFD998 #98D9C3 #A298D9 #D998AE
split-complementary
#CFD998 #98AED9 #C398D9
monochromatic
#A3B442 #BAC96B #CFD998 #E4E9C5 #F5F7E9

Accessibility & contrast

On white

1.50
#CFD998 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.03
#CFD998 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD998
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD998#FFFFFF#000000##000000
##CFD9981.001.5014.0314.03
#FFFFFF1.501.0021.0021.00
#00000014.0321.001.001.00
##00000014.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D394
Deuteranopia (green-blind)
#E1D49B
Tritanopia (blue-blind)
#D6D2C8
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #cfd998;
/* rgb */ color: rgb(207, 217, 152);
/* oklch */ color: oklch(86.2% 0.086 115.3);
Tailwind
colors: {
  custom: {
    50: '#dee4b7',
    500: '#cfd998',
    950: '#000000',
  },
}
SCSS
$custom: #cfd998;
$custom-light: #dee4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd998",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 152
  },
  "hsl": {
    "h": 69.231,
    "s": 46.099,
    "l": 72.353
  },
  "oklch": {
    "l": 0.86206,
    "c": 0.08564,
    "h": 115.3
  },
  "luminance": 0.65158
}

Semantic roles & 50–950 ramp

primary
#CFD998
secondary
#7165B0
accent
#2CB942
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #CFD998

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

Preview Lab → · Contrast checker → · Palette generator →

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