#CBC840#CBC840

#CBC840 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.1% C 0.153 H 108.1°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#CBC840
RGBrgb(203, 200, 64)
HSLhsl(59, 57%, 52%)
HSVhsv(59, 68%, 80%)
CMYKcmyk(0%, 1.5%, 68.5%, 20.4%)
CIE-LABlab(78.68, -14.95, 64.99)
CIE-LCHlch(78.68, 66.68, 102.95°)
OKLaboklab(81.11% -0.0474 0.145)
OKLCHoklch(81.11% 0.153 108.1)
XYZxyz(46.2100, 54.3767, 12.9111)
Luminance0.5437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC840 #4043CB
analogous
#CB8340 #CBC840 #89CB40
triadic
#CBC840 #40CBC8 #C840CB
tetradic
#CBC840 #40CB83 #4043CB #CB4089
square
#CBC840 #40CB83 #4043CB #CB4089
split-complementary
#CBC840 #4089CB #8340CB
monochromatic
#72701F #A29F2C #CBC840 #D8D670 #E5E4A0

Accessibility & contrast

On white

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

On black

11.88
#CBC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC840
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC840#FFFFFF#000000##000000
##CBC8401.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbc840;
/* rgb */ color: rgb(203, 200, 64);
/* oklch */ color: oklch(81.1% 0.153 108.1);
Tailwind
colors: {
  custom: {
    50: '#ded87d',
    500: '#cbc840',
    950: '#000000',
  },
}
SCSS
$custom: #cbc840;
$custom-light: #ded87d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc840",
  "rgb": {
    "r": 203,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 58.705,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81108,
    "c": 0.15255,
    "h": 108.1
  },
  "luminance": 0.54375
}

Semantic roles & 50–950 ramp

primary
#CBC840
secondary
#35367B
accent
#4BE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC840

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

Preview Lab → · Contrast checker → · Palette generator →

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