#CAB74C#CAB74C

#CAB74C is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.5% C 0.128 H 99.3°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#CAB74C
RGBrgb(202, 183, 76)
HSLhsl(51, 54%, 55%)
HSVhsv(51, 62%, 79%)
CMYKcmyk(0%, 9.4%, 62.4%, 20.8%)
CIE-LABlab(74.16, -5.97, 55.33)
CIE-LCHlch(74.16, 55.66, 96.16°)
OKLaboklab(77.52% -0.0206 0.1265)
OKLCHoklch(77.52% 0.128 99.3)
XYZxyz(42.5969, 46.9472, 13.6540)
Luminance0.4694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB74C #4C5FCA
analogous
#CA784C #CAB74C #9ECA4C
triadic
#CAB74C #4CCAB7 #B74CCA
tetradic
#CAB74C #4CCA78 #4C5FCA #CA4C9E
square
#CAB74C #4CCA78 #4C5FCA #CA4C9E
split-complementary
#CAB74C #4C9ECA #784CCA
monochromatic
#786B24 #A79632 #CAB74C #D8CA7B #E6DDAA

Accessibility & contrast

On white

2.02
#CAB74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.39
#CAB74C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB74C
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB74C#FFFFFF#000000##000000
##CAB74C1.002.0210.3910.39
#FFFFFF2.021.0021.0021.00
#00000010.3921.001.001.00
##00000010.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B240
Deuteranopia (green-blind)
#CDB952
Tritanopia (blue-blind)
#D9ABA0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cab74c;
/* rgb */ color: rgb(202, 183, 76);
/* oklch */ color: oklch(77.5% 0.128 99.3);
Tailwind
colors: {
  custom: {
    50: '#ddcc82',
    500: '#cab74c',
    950: '#000000',
  },
}
SCSS
$custom: #cab74c;
$custom-light: #ddcc82;
$custom-dark: #000000;
JSON
{
  "hex": "#cab74c",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 76
  },
  "hsl": {
    "h": 50.952,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77518,
    "c": 0.12817,
    "h": 99.3
  },
  "luminance": 0.46945
}

Semantic roles & 50–950 ramp

primary
#CAB74C
secondary
#9EA6D4
accent
#60DE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB74C

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

Preview Lab → · Contrast checker → · Palette generator →

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