#CFC98E#CFC98E

#CFC98E is a very light, moderate yellow. Relative luminance 0.570; OKLCH L 82.7% C 0.078 H 103.0°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#CFC98E
RGBrgb(207, 201, 142)
HSLhsl(54, 40%, 68%)
HSVhsv(54, 31%, 81%)
CMYKcmyk(0%, 2.9%, 31.4%, 18.8%)
CIE-LABlab(80.18, -6.92, 30.30)
CIE-LCHlch(80.18, 31.08, 102.87°)
OKLaboklab(82.67% -0.0175 0.0756)
OKLCHoklch(82.67% 0.078 103)
XYZxyz(51.5017, 56.9928, 33.8736)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC98E #8E94CF
analogous
#CFA88E #CFC98E #B4CF8E
triadic
#CFC98E #8ECFC9 #C98ECF
tetradic
#CFC98E #8ECFA8 #8E94CF #CF8EB4
square
#CFC98E #8ECFA8 #8E94CF #CF8EB4
split-complementary
#CFC98E #8EB4CF #A88ECF
monochromatic
#9F9744 #BDB463 #CFC98E #E1DEB9 #F3F2E4

Accessibility & contrast

On white

1.69
#CFC98E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.40
#CFC98E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC98E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC98E#FFFFFF#000000##000000
##CFC98E1.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C58A
Deuteranopia (green-blind)
#D6C890
Tritanopia (blue-blind)
#D8C1BA
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cfc98e;
/* rgb */ color: rgb(207, 201, 142);
/* oklch */ color: oklch(82.7% 0.078 103.0);
Tailwind
colors: {
  custom: {
    50: '#ded9af',
    500: '#cfc98e',
    950: '#000000',
  },
}
SCSS
$custom: #cfc98e;
$custom-light: #ded9af;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc98e",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 142
  },
  "hsl": {
    "h": 54.462,
    "s": 40.373,
    "l": 68.431
  },
  "oklch": {
    "l": 0.82667,
    "c": 0.07757,
    "h": 103
  },
  "luminance": 0.56992
}

Semantic roles & 50–950 ramp

primary
#CFC98E
secondary
#5D63A4
accent
#3EB332
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC98E

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

Preview Lab → · Contrast checker → · Palette generator →

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