#CAB534#CAB534

#CAB534 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 76.9% C 0.143 H 99.6°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#CAB534
RGBrgb(202, 181, 52)
HSLhsl(52, 59%, 50%)
HSVhsv(52, 74%, 79%)
CMYKcmyk(0%, 10.4%, 74.3%, 20.8%)
CIE-LABlab(73.45, -6.23, 64.25)
CIE-LCHlch(73.45, 64.56, 95.54°)
OKLaboklab(76.9% -0.024 0.1413)
OKLCHoklch(76.9% 0.143 99.6)
XYZxyz(41.5028, 45.8542, 9.9128)
Luminance0.4585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB534 #3449CA
analogous
#CA6A34 #CAB534 #94CA34
triadic
#CAB534 #34CAB5 #B534CA
tetradic
#CAB534 #34CA6A #3449CA #CA3494
square
#CAB534 #34CA6A #3449CA #CA3494
split-complementary
#CAB534 #3494CA #6A34CA
monochromatic
#695E1B #998927 #CAB534 #D7C764 #E4D995

Accessibility & contrast

On white

2.06
#CAB534 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.17
#CAB534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB534
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB534#FFFFFF#000000##000000
##CAB5341.002.0610.1710.17
#FFFFFF2.061.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B01C
Deuteranopia (green-blind)
#CCB83D
Tritanopia (blue-blind)
#DAA79C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cab534;
/* rgb */ color: rgb(202, 181, 52);
/* oklch */ color: oklch(76.9% 0.143 99.6);
Tailwind
colors: {
  custom: {
    50: '#deca75',
    500: '#cab534',
    950: '#000000',
  },
}
SCSS
$custom: #cab534;
$custom-light: #deca75;
$custom-dark: #000000;
JSON
{
  "hex": "#cab534",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 52
  },
  "hsl": {
    "h": 51.6,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.76902,
    "c": 0.14335,
    "h": 99.6
  },
  "luminance": 0.45852
}

Semantic roles & 50–950 ramp

primary
#CAB534
secondary
#8B94CF
accent
#5BE246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB534

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

Preview Lab → · Contrast checker → · Palette generator →

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