#CAB840#CAB840

#CAB840 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.6% C 0.138 H 100.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#CAB840
RGBrgb(202, 184, 64)
HSLhsl(52, 57%, 52%)
HSVhsv(52, 68%, 79%)
CMYKcmyk(0%, 8.9%, 68.3%, 20.8%)
CIE-LABlab(74.32, -7.21, 60.57)
CIE-LCHlch(74.32, 61.00, 96.79°)
OKLaboklab(77.62% -0.0255 0.1357)
OKLCHoklch(77.62% 0.138 100.6)
XYZxyz(42.4249, 47.2096, 11.7272)
Luminance0.4721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB840 #4052CA
analogous
#CA7340 #CAB840 #97CA40
triadic
#CAB840 #40CAB8 #B840CA
tetradic
#CAB840 #40CA73 #4052CA #CA4097
square
#CAB840 #40CA73 #4052CA #CA4097
split-complementary
#CAB840 #4097CA #7340CA
monochromatic
#70661F #A0912C #CAB840 #D7CA70 #E5DCA0

Accessibility & contrast

On white

2.01
#CAB840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#CAB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB840
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB840#FFFFFF#000000##000000
##CAB8401.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#CEBA47
Tritanopia (blue-blind)
#D9ABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab840;
/* rgb */ color: rgb(202, 184, 64);
/* oklch */ color: oklch(77.6% 0.138 100.6);
Tailwind
colors: {
  custom: {
    50: '#decd7b',
    500: '#cab840',
    950: '#000000',
  },
}
SCSS
$custom: #cab840;
$custom-light: #decd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab840",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 52.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7762,
    "c": 0.13808,
    "h": 100.6
  },
  "luminance": 0.47208
}

Semantic roles & 50–950 ramp

primary
#CAB840
secondary
#959DD1
accent
#5CE048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB840

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

Preview Lab → · Contrast checker → · Palette generator →

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