#CEC147#CEC147

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

Color values

HEX#CEC147
RGBrgb(206, 193, 71)
HSLhsl(54, 58%, 54%)
HSVhsv(54, 66%, 81%)
CMYKcmyk(0%, 6.3%, 65.5%, 19.2%)
CIE-LABlab(77.11, -9.74, 60.72)
CIE-LCHlch(77.11, 61.49, 99.12°)
OKLaboklab(79.94% -0.0322 0.137)
OKLCHoklch(79.94% 0.141 103.2)
XYZxyz(45.6627, 51.7185, 13.5374)
Luminance0.5172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC147 #4754CE
analogous
#CE7E47 #CEC147 #98CE47
triadic
#CEC147 #47CEC1 #C147CE
tetradic
#CEC147 #47CE7E #4754CE #CE4798
square
#CEC147 #47CE7E #4754CE #CE4798
split-complementary
#CEC147 #4798CE #7E47CE
monochromatic
#7A7121 #AA9E2D #CEC147 #DBD177 #E8E2A8

Accessibility & contrast

On white

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

On black

11.34
#CEC147 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC147
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC147#FFFFFF#000000##000000
##CEC1471.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec147;
/* rgb */ color: rgb(206, 193, 71);
/* oklch */ color: oklch(79.9% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e0d380',
    500: '#cec147',
    950: '#000000',
  },
}
SCSS
$custom: #cec147;
$custom-light: #e0d380;
$custom-dark: #000000;
JSON
{
  "hex": "#cec147",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 71
  },
  "hsl": {
    "h": 54.222,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79935,
    "c": 0.14077,
    "h": 103.2
  },
  "luminance": 0.51717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC147

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

Preview Lab → · Contrast checker → · Palette generator →

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