#CFC248#CFC248

#CFC248 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.2% C 0.141 H 103.2°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#CFC248
RGBrgb(207, 194, 72)
HSLhsl(54, 58%, 55%)
HSVhsv(54, 65%, 81%)
CMYKcmyk(0%, 6.3%, 65.2%, 18.8%)
CIE-LABlab(77.47, -9.77, 60.71)
CIE-LCHlch(77.47, 61.49, 99.15°)
OKLaboklab(80.24% -0.0322 0.1371)
OKLCHoklch(80.24% 0.141 103.2)
XYZxyz(46.1954, 52.3187, 13.7948)
Luminance0.5232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC248 #4855CF
analogous
#CF7E48 #CFC248 #99CF48
triadic
#CFC248 #48CFC2 #C248CF
tetradic
#CFC248 #48CF7E #4855CF #CF4899
square
#CFC248 #48CF7E #4855CF #CF4899
split-complementary
#CFC248 #4899CF #7E48CF
monochromatic
#7C7321 #ADA02D #CFC248 #DCD278 #E8E2A9

Accessibility & contrast

On white

1.83
#CFC248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#CFC248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC248
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC248#FFFFFF#000000##000000
##CFC2481.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC38
Deuteranopia (green-blind)
#D7C24F
Tritanopia (blue-blind)
#DEB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc248;
/* rgb */ color: rgb(207, 194, 72);
/* oklch */ color: oklch(80.2% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e1d481',
    500: '#cfc248',
    950: '#000000',
  },
}
SCSS
$custom: #cfc248;
$custom-light: #e1d481;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc248",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 54.222,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80243,
    "c": 0.14087,
    "h": 103.2
  },
  "luminance": 0.52317
}

Semantic roles & 50–950 ramp

primary
#CFC248
secondary
#373F84
accent
#55E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC248

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

Preview Lab → · Contrast checker → · Palette generator →

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