#CAB348#CAB348

#CAB348 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.6% C 0.128 H 97.1°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#CAB348
RGBrgb(202, 179, 72)
HSLhsl(49, 55%, 54%)
HSVhsv(49, 64%, 79%)
CMYKcmyk(0%, 11.4%, 64.4%, 20.8%)
CIE-LABlab(73.07, -4.14, 55.91)
CIE-LCHlch(73.07, 56.07, 94.23°)
OKLaboklab(76.64% -0.0158 0.1271)
OKLCHoklch(76.64% 0.128 97.1)
XYZxyz(41.6488, 45.2666, 12.6732)
Luminance0.4526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB348 #485FCA
analogous
#CA7248 #CAB348 #A0CA48
triadic
#CAB348 #48CAB3 #B348CA
tetradic
#CAB348 #48CA72 #485FCA #CA48A0
square
#CAB348 #48CA72 #485FCA #CA48A0
split-complementary
#CAB348 #48A0CA #7248CA
monochromatic
#766722 #A59030 #CAB348 #D8C777 #E5DAA7

Accessibility & contrast

On white

2.09
#CAB348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#CAB348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB348
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB348#FFFFFF#000000##000000
##CAB3481.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF3B
Deuteranopia (green-blind)
#CAB74D
Tritanopia (blue-blind)
#D9A69C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab348;
/* rgb */ color: rgb(202, 179, 72);
/* oklch */ color: oklch(76.6% 0.128 97.1);
Tailwind
colors: {
  custom: {
    50: '#ddc980',
    500: '#cab348',
    950: '#000000',
  },
}
SCSS
$custom: #cab348;
$custom-light: #ddc980;
$custom-dark: #000000;
JSON
{
  "hex": "#cab348",
  "rgb": {
    "r": 202,
    "g": 179,
    "b": 72
  },
  "hsl": {
    "h": 49.385,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.76644,
    "c": 0.12812,
    "h": 97.1
  },
  "luminance": 0.45265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAB348

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

Preview Lab → · Contrast checker → · Palette generator →

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