#CAB74A#CAB74A

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

Color values

HEX#CAB74A
RGBrgb(202, 183, 74)
HSLhsl(51, 55%, 54%)
HSVhsv(51, 63%, 79%)
CMYKcmyk(0%, 9.4%, 63.4%, 20.8%)
CIE-LABlab(74.14, -6.10, 56.19)
CIE-LCHlch(74.14, 56.52, 96.19°)
OKLaboklab(77.5% -0.0212 0.128)
OKLCHoklch(77.5% 0.13 99.4)
XYZxyz(42.5284, 46.9198, 13.2935)
Luminance0.4692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB74A #4A5DCA
analogous
#CA774A #CAB74A #9DCA4A
triadic
#CAB74A #4ACAB7 #B74ACA
tetradic
#CAB74A #4ACA77 #4A5DCA #CA4A9D
square
#CAB74A #4ACA77 #4A5DCA #CA4A9D
split-complementary
#CAB74A #4A9DCA #774ACA
monochromatic
#776A23 #A69531 #CAB74A #D8CA79 #E6DDA9

Accessibility & contrast

On white

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

On black

10.38
#CAB74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB74A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB74A#FFFFFF#000000##000000
##CAB74A1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B23D
Deuteranopia (green-blind)
#CDB950
Tritanopia (blue-blind)
#D9AAA0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cab74a;
/* rgb */ color: rgb(202, 183, 74);
/* oklch */ color: oklch(77.5% 0.130 99.4);
Tailwind
colors: {
  custom: {
    50: '#ddcc81',
    500: '#cab74a',
    950: '#000000',
  },
}
SCSS
$custom: #cab74a;
$custom-light: #ddcc81;
$custom-dark: #000000;
JSON
{
  "hex": "#cab74a",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 74
  },
  "hsl": {
    "h": 51.094,
    "s": 54.701,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77498,
    "c": 0.12977,
    "h": 99.4
  },
  "luminance": 0.46918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAB74A

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

Preview Lab → · Contrast checker → · Palette generator →

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