#CEC740#CEC740

#CEC740 is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.2% C 0.151 H 106.4°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#CEC740
RGBrgb(206, 199, 64)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 69%, 81%)
CMYKcmyk(0%, 3.4%, 68.9%, 19.2%)
CIE-LABlab(78.66, -13.18, 65.05)
CIE-LCHlch(78.66, 66.37, 101.45°)
OKLaboklab(81.15% -0.0426 0.145)
OKLCHoklch(81.15% 0.151 106.4)
XYZxyz(46.8042, 54.3405, 12.8728)
Luminance0.5434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC740 #4047CE
analogous
#CE8040 #CEC740 #8ECE40
triadic
#CEC740 #40CEC7 #C740CE
tetradic
#CEC740 #40CE80 #4047CE #CE408E
square
#CEC740 #40CE80 #4047CE #CE408E
split-complementary
#CEC740 #408ECE #8040CE
monochromatic
#75711E #A6A02B #CEC740 #DAD571 #E7E4A1

Accessibility & contrast

On white

1.77
#CEC740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#CEC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC740
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC740#FFFFFF#000000##000000
##CEC7401.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DBC549
Tritanopia (blue-blind)
#DDBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec740;
/* rgb */ color: rgb(206, 199, 64);
/* oklch */ color: oklch(81.2% 0.151 106.4);
Tailwind
colors: {
  custom: {
    50: '#e0d77d',
    500: '#cec740',
    950: '#000000',
  },
}
SCSS
$custom: #cec740;
$custom-light: #e0d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec740",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 57.042,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81151,
    "c": 0.15116,
    "h": 106.4
  },
  "luminance": 0.54339
}

Semantic roles & 50–950 ramp

primary
#CEC740
secondary
#34387E
accent
#4DE245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC740

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

Preview Lab → · Contrast checker → · Palette generator →

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