#CAB642#CAB642

#CAB642 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.2% C 0.135 H 99.4°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#CAB642
RGBrgb(202, 182, 66)
HSLhsl(51, 56%, 53%)
HSVhsv(51, 67%, 79%)
CMYKcmyk(0%, 9.9%, 67.3%, 20.8%)
CIE-LABlab(73.81, -6.06, 59.24)
CIE-LCHlch(73.81, 59.54, 95.84°)
OKLaboklab(77.22% -0.022 0.1332)
OKLCHoklch(77.22% 0.135 99.4)
XYZxyz(42.0703, 46.4077, 11.8948)
Luminance0.4641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB642 #4256CA
analogous
#CA7242 #CAB642 #9ACA42
triadic
#CAB642 #42CAB6 #B642CA
tetradic
#CAB642 #42CA72 #4256CA #CA429A
square
#CAB642 #42CA72 #4256CA #CA429A
split-complementary
#CAB642 #429ACA #7242CA
monochromatic
#726620 #A2902D #CAB642 #D7C872 #E5DBA2

Accessibility & contrast

On white

2.04
#CAB642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#CAB642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB642
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB642#FFFFFF#000000##000000
##CAB6421.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B133
Deuteranopia (green-blind)
#CCB949
Tritanopia (blue-blind)
#D9A99E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab642;
/* rgb */ color: rgb(202, 182, 66);
/* oklch */ color: oklch(77.2% 0.135 99.4);
Tailwind
colors: {
  custom: {
    50: '#decb7c',
    500: '#cab642',
    950: '#000000',
  },
}
SCSS
$custom: #cab642;
$custom-light: #decb7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab642",
  "rgb": {
    "r": 202,
    "g": 182,
    "b": 66
  },
  "hsl": {
    "h": 51.176,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77217,
    "c": 0.13503,
    "h": 99.4
  },
  "luminance": 0.46406
}

Semantic roles & 50–950 ramp

primary
#CAB642
secondary
#969FD1
accent
#5FDF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB642

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

Preview Lab → · Contrast checker → · Palette generator →

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