#CEC248#CEC248

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

Color values

HEX#CEC248
RGBrgb(206, 194, 72)
HSLhsl(55, 58%, 55%)
HSVhsv(55, 65%, 81%)
CMYKcmyk(0%, 5.8%, 65%, 19.2%)
CIE-LABlab(77.39, -10.20, 60.59)
CIE-LCHlch(77.39, 61.44, 99.55°)
OKLaboklab(80.16% -0.0333 0.1369)
OKLCHoklch(80.16% 0.141 103.7)
XYZxyz(45.9169, 52.1750, 13.7817)
Luminance0.5217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC248 #4854CE
analogous
#CE7F48 #CEC248 #97CE48
triadic
#CEC248 #48CEC2 #C248CE
tetradic
#CEC248 #48CE7F #4854CE #CE4897
square
#CEC248 #48CE7F #4854CE #CE4897
split-complementary
#CEC248 #4897CE #7F48CE
monochromatic
#7B7321 #ABA02E #CEC248 #DBD278 #E8E2A9

Accessibility & contrast

On white

1.84
#CEC248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CEC248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC248
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC248#FFFFFF#000000##000000
##CEC2481.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec248;
/* rgb */ color: rgb(206, 194, 72);
/* oklch */ color: oklch(80.2% 0.141 103.7);
Tailwind
colors: {
  custom: {
    50: '#e0d481',
    500: '#cec248',
    950: '#000000',
  },
}
SCSS
$custom: #cec248;
$custom-light: #e0d481;
$custom-dark: #000000;
JSON
{
  "hex": "#cec248",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 54.627,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.80155,
    "c": 0.14093,
    "h": 103.7
  },
  "luminance": 0.52173
}

Semantic roles & 50–950 ramp

primary
#CEC248
secondary
#373E83
accent
#55E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC248

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

Preview Lab → · Contrast checker → · Palette generator →

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