#CEC148#CEC148

#CEC148 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.140 H 103.2°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#CEC148
RGBrgb(206, 193, 72)
HSLhsl(54, 58%, 55%)
HSVhsv(54, 65%, 81%)
CMYKcmyk(0%, 6.3%, 65%, 19.2%)
CIE-LABlab(77.12, -9.69, 60.31)
CIE-LCHlch(77.12, 61.09, 99.12°)
OKLaboklab(79.94% -0.0319 0.1363)
OKLCHoklch(79.94% 0.14 103.2)
XYZxyz(45.6951, 51.7314, 13.7078)
Luminance0.5173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC148 #4855CE
analogous
#CE7E48 #CEC148 #98CE48
triadic
#CEC148 #48CEC1 #C148CE
tetradic
#CEC148 #48CE7E #4855CE #CE4898
square
#CEC148 #48CE7E #4855CE #CE4898
split-complementary
#CEC148 #4898CE #7E48CE
monochromatic
#7B7221 #AB9F2E #CEC148 #DBD178 #E8E2A9

Accessibility & contrast

On white

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

On black

11.35
#CEC148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC148
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC148#FFFFFF#000000##000000
##CEC1481.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D6C14F
Tritanopia (blue-blind)
#DDB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec148;
/* rgb */ color: rgb(206, 193, 72);
/* oklch */ color: oklch(79.9% 0.140 103.2);
Tailwind
colors: {
  custom: {
    50: '#e0d381',
    500: '#cec148',
    950: '#000000',
  },
}
SCSS
$custom: #cec148;
$custom-light: #e0d381;
$custom-dark: #000000;
JSON
{
  "hex": "#cec148",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 54.179,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.79944,
    "c": 0.14002,
    "h": 103.2
  },
  "luminance": 0.5173
}

Semantic roles & 50–950 ramp

primary
#CEC148
secondary
#373F83
accent
#56E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC148

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

Preview Lab → · Contrast checker → · Palette generator →

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