#CFC548#CFC548

#CFC548 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.9% C 0.144 H 104.7°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#CFC548
RGBrgb(207, 197, 72)
HSLhsl(56, 58%, 55%)
HSVhsv(56, 65%, 81%)
CMYKcmyk(0%, 4.8%, 65.2%, 18.8%)
CIE-LABlab(78.27, -11.30, 61.54)
CIE-LCHlch(78.27, 62.57, 100.41°)
OKLaboklab(80.88% -0.0365 0.1389)
OKLCHoklch(80.88% 0.144 104.7)
XYZxyz(46.8699, 53.6675, 14.0196)
Luminance0.5367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC548 #4852CF
analogous
#CF8248 #CFC548 #95CF48
triadic
#CFC548 #48CFC5 #C548CF
tetradic
#CFC548 #48CF82 #4852CF #CF4895
square
#CFC548 #48CF82 #4852CF #CF4895
split-complementary
#CFC548 #4895CF #8248CF
monochromatic
#7C7521 #ADA32D #CFC548 #DCD478 #E8E4A9

Accessibility & contrast

On white

1.79
#CFC548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#CFC548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC548
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC548#FFFFFF#000000##000000
##CFC5481.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE38
Deuteranopia (green-blind)
#D9C450
Tritanopia (blue-blind)
#DEB8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc548;
/* rgb */ color: rgb(207, 197, 72);
/* oklch */ color: oklch(80.9% 0.144 104.7);
Tailwind
colors: {
  custom: {
    50: '#e1d681',
    500: '#cfc548',
    950: '#000000',
  },
}
SCSS
$custom: #cfc548;
$custom-light: #e1d681;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc548",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 55.556,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80877,
    "c": 0.14363,
    "h": 104.7
  },
  "luminance": 0.53666
}

Semantic roles & 50–950 ramp

primary
#CFC548
secondary
#373D84
accent
#52E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC548

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

Preview Lab → · Contrast checker → · Palette generator →

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