#CEC843#CEC843

#CEC843 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.150 H 106.8°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#CEC843
RGBrgb(206, 200, 67)
HSLhsl(57, 59%, 54%)
HSVhsv(57, 67%, 81%)
CMYKcmyk(0%, 2.9%, 67.5%, 19.2%)
CIE-LABlab(78.95, -13.52, 64.19)
CIE-LCHlch(78.95, 65.60, 101.90°)
OKLaboklab(81.39% -0.0433 0.1437)
OKLCHoklch(81.39% 0.15 106.8)
XYZxyz(47.1227, 54.8372, 13.4115)
Luminance0.5484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC843 #4349CE
analogous
#CE8243 #CEC843 #8ECE43
triadic
#CEC843 #43CEC8 #C843CE
tetradic
#CEC843 #43CE82 #4349CE #CE438E
square
#CEC843 #43CE82 #4349CE #CE438E
split-complementary
#CEC843 #438ECE #8243CE
monochromatic
#77741F #A8A32C #CEC843 #DBD674 #E7E4A4

Accessibility & contrast

On white

1.75
#CEC843 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.97
#CEC843 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC843
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC843#FFFFFF#000000##000000
##CEC8431.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12F
Deuteranopia (green-blind)
#DBC64C
Tritanopia (blue-blind)
#DDBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec843;
/* rgb */ color: rgb(206, 200, 67);
/* oklch */ color: oklch(81.4% 0.150 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d87f',
    500: '#cec843',
    950: '#000000',
  },
}
SCSS
$custom: #cec843;
$custom-light: #e0d87f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec843",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 67
  },
  "hsl": {
    "h": 57.41,
    "s": 58.65,
    "l": 53.529
  },
  "oklch": {
    "l": 0.81386,
    "c": 0.15011,
    "h": 106.8
  },
  "luminance": 0.54836
}

Semantic roles & 50–950 ramp

primary
#CEC843
secondary
#353980
accent
#4DE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC843

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

Preview Lab → · Contrast checker → · Palette generator →

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