#CFC298#CFC298

#CFC298 is a light, muted yellow. Relative luminance 0.541; OKLCH L 81.4% C 0.058 H 92.9°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CFC298
RGBrgb(207, 194, 152)
HSLhsl(46, 36%, 70%)
HSVhsv(46, 27%, 81%)
CMYKcmyk(0%, 6.3%, 26.6%, 18.8%)
CIE-LABlab(78.53, -1.98, 22.82)
CIE-LCHlch(78.53, 22.91, 94.95°)
OKLaboklab(81.43% -0.0029 0.0579)
OKLCHoklch(81.43% 0.058 92.9)
XYZxyz(50.6917, 54.1172, 37.4750)
Luminance0.5412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC298 #98A5CF
analogous
#CFA698 #CFC298 #C0CF98
triadic
#CFC298 #98CFC2 #C298CF
tetradic
#CFC298 #98CFA6 #98A5CF #CF98C0
square
#CFC298 #98CFA6 #98A5CF #CF98C0
split-complementary
#CFC298 #98C0CF #A698CF
monochromatic
#A18D4B #BCA96E #CFC298 #E2DBC2 #F5F3EA

Accessibility & contrast

On white

1.78
#CFC298 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CFC298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC298
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC298#FFFFFF#000000##000000
##CFC2981.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBC095
Deuteranopia (green-blind)
#CFC499
Tritanopia (blue-blind)
#D8BBB7
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc298;
/* rgb */ color: rgb(207, 194, 152);
/* oklch */ color: oklch(81.4% 0.058 92.9);
Tailwind
colors: {
  custom: {
    50: '#ded4b6',
    500: '#cfc298',
    950: '#000000',
  },
}
SCSS
$custom: #cfc298;
$custom-light: #ded4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc298",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 152
  },
  "hsl": {
    "h": 45.818,
    "s": 36.424,
    "l": 70.392
  },
  "oklch": {
    "l": 0.81426,
    "c": 0.05793,
    "h": 92.9
  },
  "luminance": 0.54116
}

Semantic roles & 50–950 ramp

primary
#CFC298
secondary
#6775A5
accent
#53AF36
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CFC298

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

Preview Lab → · Contrast checker → · Palette generator →

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