#CAB248#CAB248

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

Color values

HEX#CAB248
RGBrgb(202, 178, 72)
HSLhsl(49, 55%, 54%)
HSVhsv(49, 64%, 79%)
CMYKcmyk(0%, 11.9%, 64.4%, 20.8%)
CIE-LABlab(72.80, -3.61, 55.63)
CIE-LCHlch(72.80, 55.75, 93.71°)
OKLaboklab(76.44% -0.0143 0.1265)
OKLCHoklch(76.44% 0.127 96.5)
XYZxyz(41.4491, 44.8672, 12.6066)
Luminance0.4486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB248 #4860CA
analogous
#CA7148 #CAB248 #A1CA48
triadic
#CAB248 #48CAB2 #B248CA
tetradic
#CAB248 #48CA71 #4860CA #CA48A1
square
#CAB248 #48CA71 #4860CA #CA48A1
split-complementary
#CAB248 #48A1CA #7148CA
monochromatic
#766622 #A58F30 #CAB248 #D8C677 #E5DAA7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB248#FFFFFF#000000##000000
##CAB2481.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)
#C3AE3C
Deuteranopia (green-blind)
#C9B64D
Tritanopia (blue-blind)
#D9A59C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab248;
/* rgb */ color: rgb(202, 178, 72);
/* oklch */ color: oklch(76.4% 0.127 96.5);
Tailwind
colors: {
  custom: {
    50: '#ddc880',
    500: '#cab248',
    950: '#000000',
  },
}
SCSS
$custom: #cab248;
$custom-light: #ddc880;
$custom-dark: #000000;
JSON
{
  "hex": "#cab248",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 48.923,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.76436,
    "c": 0.12735,
    "h": 96.5
  },
  "luminance": 0.44865
}

Semantic roles & 50–950 ramp

primary
#CAB248
secondary
#9BA5D3
accent
#65DE49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130A
muted
#84827C

Preview Lab

Preview with #CAB248

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

Preview Lab → · Contrast checker → · Palette generator →

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