#CEC948#CEC948

#CEC948 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.6% C 0.148 H 107.1°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CEC948
RGBrgb(206, 201, 72)
HSLhsl(58, 58%, 55%)
HSVhsv(58, 65%, 81%)
CMYKcmyk(0%, 2.4%, 65%, 19.2%)
CIE-LABlab(79.25, -13.75, 62.53)
CIE-LCHlch(79.25, 64.03, 102.40°)
OKLaboklab(81.64% -0.0434 0.141)
OKLCHoklch(81.64% 0.148 107.1)
XYZxyz(47.5116, 55.3645, 14.3133)
Luminance0.5536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC948 #484DCE
analogous
#CE8648 #CEC948 #90CE48
triadic
#CEC948 #48CEC9 #C948CE
tetradic
#CEC948 #48CE86 #484DCE #CE4890
square
#CEC948 #48CE86 #484DCE #CE4890
split-complementary
#CEC948 #4890CE #8648CE
monochromatic
#7B7721 #ABA62E #CEC948 #DBD778 #E8E5A9

Accessibility & contrast

On white

1.74
#CEC948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#CEC948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC948
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC948#FFFFFF#000000##000000
##CEC9481.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C137
Deuteranopia (green-blind)
#DCC750
Tritanopia (blue-blind)
#DCBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec948;
/* rgb */ color: rgb(206, 201, 72);
/* oklch */ color: oklch(81.6% 0.148 107.1);
Tailwind
colors: {
  custom: {
    50: '#e0d982',
    500: '#cec948',
    950: '#000000',
  },
}
SCSS
$custom: #cec948;
$custom-light: #e0d982;
$custom-dark: #000000;
JSON
{
  "hex": "#cec948",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 57.761,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81639,
    "c": 0.14756,
    "h": 107.1
  },
  "luminance": 0.55363
}

Semantic roles & 50–950 ramp

primary
#CEC948
secondary
#373A83
accent
#4DE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC948

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

Preview Lab → · Contrast checker → · Palette generator →

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