#CFC848#CFC848

#CFC848 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.146 H 106.2°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#CFC848
RGBrgb(207, 200, 72)
HSLhsl(57, 58%, 55%)
HSVhsv(57, 65%, 81%)
CMYKcmyk(0%, 3.4%, 65.2%, 18.8%)
CIE-LABlab(79.07, -12.82, 62.37)
CIE-LCHlch(79.07, 63.67, 101.62°)
OKLaboklab(81.51% -0.0408 0.1407)
OKLCHoklch(81.51% 0.146 106.2)
XYZxyz(47.5578, 55.0435, 14.2489)
Luminance0.5504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC848 #484FCF
analogous
#CF8548 #CFC848 #93CF48
triadic
#CFC848 #48CFC8 #C848CF
tetradic
#CFC848 #48CF85 #484FCF #CF4893
square
#CFC848 #48CF85 #484FCF #CF4893
split-complementary
#CFC848 #4893CF #8548CF
monochromatic
#7C7721 #ADA62D #CFC848 #DCD778 #E8E5A9

Accessibility & contrast

On white

1.75
#CFC848 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#CFC848 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC848
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC848#FFFFFF#000000##000000
##CFC8481.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C137
Deuteranopia (green-blind)
#DBC650
Tritanopia (blue-blind)
#DEBBAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc848;
/* rgb */ color: rgb(207, 200, 72);
/* oklch */ color: oklch(81.5% 0.146 106.2);
Tailwind
colors: {
  custom: {
    50: '#e1d881',
    500: '#cfc848',
    950: '#000000',
  },
}
SCSS
$custom: #cfc848;
$custom-light: #e1d881;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc848",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 72
  },
  "hsl": {
    "h": 56.889,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81512,
    "c": 0.14646,
    "h": 106.2
  },
  "luminance": 0.55042
}

Semantic roles & 50–950 ramp

primary
#CFC848
secondary
#373B84
accent
#4EE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC848

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

Preview Lab → · Contrast checker → · Palette generator →

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