#CAB718#CAB718

#CAB718 is a light, vivid yellow. Relative luminance 0.465; OKLCH L 77.2% C 0.157 H 101.6°. Best body text is #000000 at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#CAB718
RGBrgb(202, 183, 24)
HSLhsl(54, 79%, 44%)
HSVhsv(54, 88%, 79%)
CMYKcmyk(0%, 9.4%, 88.1%, 20.8%)
CIE-LABlab(73.86, -8.15, 72.40)
CIE-LCHlch(73.86, 72.85, 96.42°)
OKLaboklab(77.19% -0.0316 0.1537)
OKLCHoklch(77.19% 0.157 101.6)
XYZxyz(41.4576, 46.4915, 7.6540)
Luminance0.4649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB718 #182BCA
analogous
#CA5E18 #CAB718 #84CA18
triadic
#CAB718 #18CAB7 #B718CA
tetradic
#CAB718 #18CA5E #182BCA #CA1884
square
#CAB718 #18CA5E #182BCA #CA1884
split-complementary
#CAB718 #1884CA #5E18CA
monochromatic
#5D540B #938512 #CAB718 #E7D538 #EEE06F

Accessibility & contrast

On white

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

On black

10.30
#CAB718 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB718
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB718#FFFFFF#000000##000000
##CAB7181.002.0410.3010.30
#FFFFFF2.041.0021.0021.00
#00000010.3021.001.001.00
##00000010.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#CFB929
Tritanopia (blue-blind)
#DAA99C
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab718;
/* rgb */ color: rgb(202, 183, 24);
/* oklch */ color: oklch(77.2% 0.157 101.6);
Tailwind
colors: {
  custom: {
    50: '#dfcc6a',
    500: '#cab718',
    950: '#000000',
  },
}
SCSS
$custom: #cab718;
$custom-light: #dfcc6a;
$custom-dark: #000000;
JSON
{
  "hex": "#cab718",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 24
  },
  "hsl": {
    "h": 53.596,
    "s": 78.761,
    "l": 44.314
  },
  "oklch": {
    "l": 0.77192,
    "c": 0.15694,
    "h": 101.6
  },
  "luminance": 0.46489
}

Semantic roles & 50–950 ramp

primary
#CAB718
secondary
#6A75D4
accent
#47F533
background
#FEFCF6
surface
#FDF8EC
border
#D5D1C7
text
#161307
muted
#84827A

Preview Lab

Preview with #CAB718

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

Preview Lab → · Contrast checker → · Palette generator →

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