#CFC148#CFC148

#CFC148 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.140 H 102.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CFC148
RGBrgb(207, 193, 72)
HSLhsl(54, 58%, 55%)
HSVhsv(54, 65%, 81%)
CMYKcmyk(0%, 6.8%, 65.2%, 18.8%)
CIE-LABlab(77.21, -9.26, 60.43)
CIE-LCHlch(77.21, 61.14, 98.71°)
OKLaboklab(80.03% -0.0307 0.1366)
OKLCHoklch(80.03% 0.14 102.7)
XYZxyz(45.9736, 51.8750, 13.7209)
Luminance0.5187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC148 #4856CF
analogous
#CF7E48 #CFC148 #99CF48
triadic
#CFC148 #48CFC1 #C148CF
tetradic
#CFC148 #48CF7E #4856CF #CF4899
square
#CFC148 #48CF7E #4856CF #CF4899
split-complementary
#CFC148 #4899CF #7E48CF
monochromatic
#7C7321 #AD9F2D #CFC148 #DCD178 #E8E2A9

Accessibility & contrast

On white

1.85
#CFC148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#CFC148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC148
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC148#FFFFFF#000000##000000
##CFC1481.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D6C24F
Tritanopia (blue-blind)
#DEB4A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc148;
/* rgb */ color: rgb(207, 193, 72);
/* oklch */ color: oklch(80.0% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e1d381',
    500: '#cfc148',
    950: '#000000',
  },
}
SCSS
$custom: #cfc148;
$custom-light: #e1d381;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc148",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 53.778,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80033,
    "c": 0.13998,
    "h": 102.7
  },
  "luminance": 0.51873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC148

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

Preview Lab → · Contrast checker → · Palette generator →

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