#CAB545#CAB545

#CAB545 is a light, vivid yellow. Relative luminance 0.460; OKLCH L 77.0% C 0.132 H 98.6°. Best body text is #000000 at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#CAB545
RGBrgb(202, 181, 69)
HSLhsl(51, 56%, 53%)
HSVhsv(51, 66%, 79%)
CMYKcmyk(0%, 10.4%, 65.8%, 20.8%)
CIE-LABlab(73.57, -5.36, 57.73)
CIE-LCHlch(73.57, 57.98, 95.31°)
OKLaboklab(77.03% -0.0197 0.1305)
OKLCHoklch(77.03% 0.132 98.6)
XYZxyz(41.9570, 46.0359, 12.3049)
Luminance0.4603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB545 #455ACA
analogous
#CA7245 #CAB545 #9DCA45
triadic
#CAB545 #45CAB5 #B545CA
tetradic
#CAB545 #45CA72 #455ACA #CA459D
square
#CAB545 #45CA72 #455ACA #CA459D
split-complementary
#CAB545 #459DCA #7245CA
monochromatic
#746721 #A3912F #CAB545 #D8C875 #E5DBA4

Accessibility & contrast

On white

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

On black

10.21
#CAB545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB545
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB545#FFFFFF#000000##000000
##CAB5451.002.0610.2110.21
#FFFFFF2.061.0021.0021.00
#00000010.2121.001.001.00
##00000010.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B037
Deuteranopia (green-blind)
#CCB84B
Tritanopia (blue-blind)
#D9A89E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab545;
/* rgb */ color: rgb(202, 181, 69);
/* oklch */ color: oklch(77.0% 0.132 98.6);
Tailwind
colors: {
  custom: {
    50: '#ddca7e',
    500: '#cab545',
    950: '#000000',
  },
}
SCSS
$custom: #cab545;
$custom-light: #ddca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cab545",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 50.526,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77034,
    "c": 0.13201,
    "h": 98.6
  },
  "luminance": 0.46034
}

Semantic roles & 50–950 ramp

primary
#CAB545
secondary
#99A2D2
accent
#61DF49
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB545

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

Preview Lab → · Contrast checker → · Palette generator →

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