#CAB247#CAB247

#CAB247 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.4% C 0.128 H 96.6°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#CAB247
RGBrgb(202, 178, 71)
HSLhsl(49, 55%, 54%)
HSVhsv(49, 65%, 79%)
CMYKcmyk(0%, 11.9%, 64.9%, 20.8%)
CIE-LABlab(72.80, -3.67, 56.06)
CIE-LCHlch(72.80, 56.18, 93.75°)
OKLaboklab(76.43% -0.0146 0.1273)
OKLCHoklch(76.43% 0.128 96.6)
XYZxyz(41.4167, 44.8543, 12.4362)
Luminance0.4485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB247 #475FCA
analogous
#CA7047 #CAB247 #A0CA47
triadic
#CAB247 #47CAB2 #B247CA
tetradic
#CAB247 #47CA70 #475FCA #CA47A0
square
#CAB247 #47CA70 #475FCA #CA47A0
split-complementary
#CAB247 #47A0CA #7047CA
monochromatic
#756622 #A48F2F #CAB247 #D8C677 #E5DAA6

Accessibility & contrast

On white

2.11
#CAB247 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#CAB247 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB247
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB247#FFFFFF#000000##000000
##CAB2471.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE3A
Deuteranopia (green-blind)
#C9B64C
Tritanopia (blue-blind)
#D9A59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab247;
/* rgb */ color: rgb(202, 178, 71);
/* oklch */ color: oklch(76.4% 0.128 96.6);
Tailwind
colors: {
  custom: {
    50: '#ddc87f',
    500: '#cab247',
    950: '#000000',
  },
}
SCSS
$custom: #cab247;
$custom-light: #ddc87f;
$custom-dark: #000000;
JSON
{
  "hex": "#cab247",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 71
  },
  "hsl": {
    "h": 49.008,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76427,
    "c": 0.12814,
    "h": 96.6
  },
  "luminance": 0.44852
}

Semantic roles & 50–950 ramp

primary
#CAB247
secondary
#9AA5D2
accent
#65DF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB247

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

Preview Lab → · Contrast checker → · Palette generator →

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