#CAB738#CAB738

#CAB738 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 77.3% C 0.143 H 100.5°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#CAB738
RGBrgb(202, 183, 56)
HSLhsl(52, 58%, 51%)
HSVhsv(52, 72%, 79%)
CMYKcmyk(0%, 9.4%, 72.3%, 20.8%)
CIE-LABlab(74.00, -7.09, 63.34)
CIE-LCHlch(74.00, 63.73, 96.39°)
OKLaboklab(77.35% -0.026 0.1401)
OKLCHoklch(77.35% 0.143 100.5)
XYZxyz(42.0064, 46.7110, 10.5441)
Luminance0.4671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB738 #384BCA
analogous
#CA6E38 #CAB738 #94CA38
triadic
#CAB738 #38CAB7 #B738CA
tetradic
#CAB738 #38CA6E #384BCA #CA3894
square
#CAB738 #38CA6E #384BCA #CA3894
split-complementary
#CAB738 #3894CA #6E38CA
monochromatic
#6B611D #9B8D29 #CAB738 #D7C868 #E4DA99

Accessibility & contrast

On white

2.03
#CAB738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#CAB738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB738
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB738#FFFFFF#000000##000000
##CAB7381.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B223
Deuteranopia (green-blind)
#CEB940
Tritanopia (blue-blind)
#DAAA9E
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cab738;
/* rgb */ color: rgb(202, 183, 56);
/* oklch */ color: oklch(77.3% 0.143 100.5);
Tailwind
colors: {
  custom: {
    50: '#decc77',
    500: '#cab738',
    950: '#000000',
  },
}
SCSS
$custom: #cab738;
$custom-light: #decc77;
$custom-dark: #000000;
JSON
{
  "hex": "#cab738",
  "rgb": {
    "r": 202,
    "g": 183,
    "b": 56
  },
  "hsl": {
    "h": 52.192,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77349,
    "c": 0.14254,
    "h": 100.5
  },
  "luminance": 0.46709
}

Semantic roles & 50–950 ramp

primary
#CAB738
secondary
#8E97CF
accent
#5BE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB738

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

Preview Lab → · Contrast checker → · Palette generator →

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