#CAB74F#CAB74F

#CAB74F is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.5% C 0.126 H 99.0°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#CAB74F
RGBrgb(202, 183, 79)
HSLhsl(51, 54%, 55%)
HSVhsv(51, 61%, 79%)
CMYKcmyk(0%, 9.4%, 60.9%, 20.8%)
CIE-LABlab(74.18, -5.77, 54.03)
CIE-LCHlch(74.18, 54.33, 96.09°)
OKLaboklab(77.55% -0.0197 0.1241)
OKLCHoklch(77.55% 0.126 99)
XYZxyz(42.7036, 46.9899, 14.2162)
Luminance0.4699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB74F #4F62CA
analogous
#CA7A4F #CAB74F #9FCA4F
triadic
#CAB74F #4FCAB7 #B74FCA
tetradic
#CAB74F #4FCA7A #4F62CA #CA4F9F
square
#CAB74F #4FCA7A #4F62CA #CA4F9F
split-complementary
#CAB74F #4F9FCA #7A4FCA
monochromatic
#7A6D25 #A99733 #CAB74F #D8CA7E #E6DDAD

Accessibility & contrast

On white

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

On black

10.40
#CAB74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB74F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB74F#FFFFFF#000000##000000
##CAB74F1.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cab74f;
/* rgb */ color: rgb(202, 183, 79);
/* oklch */ color: oklch(77.5% 0.126 99.0);
Tailwind
colors: {
  custom: {
    50: '#ddcc84',
    500: '#cab74f',
    950: '#000000',
  },
}
SCSS
$custom: #cab74f;
$custom-light: #ddcc84;
$custom-dark: #000000;
JSON
{
  "hex": "#cab74f",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 79
  },
  "hsl": {
    "h": 50.732,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.77548,
    "c": 0.12568,
    "h": 99
  },
  "luminance": 0.46988
}

Semantic roles & 50–950 ramp

primary
#CAB74F
secondary
#A1A9D4
accent
#61DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB74F

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

Preview Lab → · Contrast checker → · Palette generator →

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