#CAB54C#CAB54C

#CAB54C is a light, vivid yellow. Relative luminance 0.461; OKLCH L 77.1% C 0.127 H 98.0°. Best body text is #000000 at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#CAB54C
RGBrgb(202, 181, 76)
HSLhsl(50, 54%, 55%)
HSVhsv(50, 62%, 79%)
CMYKcmyk(0%, 10.4%, 62.4%, 20.8%)
CIE-LABlab(73.63, -4.93, 54.76)
CIE-LCHlch(73.63, 54.98, 95.14°)
OKLaboklab(77.1% -0.0176 0.1253)
OKLCHoklch(77.1% 0.127 98)
XYZxyz(42.1873, 46.1280, 13.5175)
Luminance0.4613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB54C #4C61CA
analogous
#CA764C #CAB54C #A0CA4C
triadic
#CAB54C #4CCAB5 #B54CCA
tetradic
#CAB54C #4CCA76 #4C61CA #CA4CA0
square
#CAB54C #4CCA76 #4C61CA #CA4CA0
split-complementary
#CAB54C #4CA0CA #764CCA
monochromatic
#786A24 #A79432 #CAB54C #D8C97B #E6DCAA

Accessibility & contrast

On white

2.05
#CAB54C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.23
#CAB54C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB54C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB54C#FFFFFF#000000##000000
##CAB54C1.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B140
Deuteranopia (green-blind)
#CBB851
Tritanopia (blue-blind)
#D9A99E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab54c;
/* rgb */ color: rgb(202, 181, 76);
/* oklch */ color: oklch(77.1% 0.127 98.0);
Tailwind
colors: {
  custom: {
    50: '#ddca82',
    500: '#cab54c',
    950: '#000000',
  },
}
SCSS
$custom: #cab54c;
$custom-light: #ddca82;
$custom-dark: #000000;
JSON
{
  "hex": "#cab54c",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 76
  },
  "hsl": {
    "h": 50,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.771,
    "c": 0.12651,
    "h": 98
  },
  "luminance": 0.46126
}

Semantic roles & 50–950 ramp

primary
#CAB54C
secondary
#9EA7D4
accent
#63DE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB54C

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

Preview Lab → · Contrast checker → · Palette generator →

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