#CAB340#CAB340

#CAB340 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.6% C 0.134 H 97.8°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#CAB340
RGBrgb(202, 179, 64)
HSLhsl(50, 57%, 52%)
HSVhsv(50, 68%, 79%)
CMYKcmyk(0%, 11.4%, 68.3%, 20.8%)
CIE-LABlab(73.00, -4.60, 59.23)
CIE-LCHlch(73.00, 59.40, 94.44°)
OKLaboklab(76.57% -0.0181 0.1329)
OKLCHoklch(76.57% 0.134 97.8)
XYZxyz(41.4046, 45.1689, 11.3871)
Luminance0.4517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB340 #4057CA
analogous
#CA6E40 #CAB340 #9CCA40
triadic
#CAB340 #40CAB3 #B340CA
tetradic
#CAB340 #40CA6E #4057CA #CA409C
square
#CAB340 #40CA6E #4057CA #CA409C
split-complementary
#CAB340 #409CCA #6E40CA
monochromatic
#70631F #A08D2C #CAB340 #D7C670 #E5D9A0

Accessibility & contrast

On white

2.09
#CAB340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#CAB340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB340
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB340#FFFFFF#000000##000000
##CAB3401.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF30
Deuteranopia (green-blind)
#CAB746
Tritanopia (blue-blind)
#DAA69B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab340;
/* rgb */ color: rgb(202, 179, 64);
/* oklch */ color: oklch(76.6% 0.134 97.8);
Tailwind
colors: {
  custom: {
    50: '#dec97b',
    500: '#cab340',
    950: '#000000',
  },
}
SCSS
$custom: #cab340;
$custom-light: #dec97b;
$custom-dark: #000000;
JSON
{
  "hex": "#cab340",
  "rgb": {
    "r": 202,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 50,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.76573,
    "c": 0.13409,
    "h": 97.8
  },
  "luminance": 0.45167
}

Semantic roles & 50–950 ramp

primary
#CAB340
secondary
#959FD1
accent
#61E048
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB340

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

Preview Lab → · Contrast checker → · Palette generator →

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