#CAB234#CAB234

#CAB234 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.141 H 98.0°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#CAB234
RGBrgb(202, 178, 52)
HSLhsl(50, 59%, 50%)
HSVhsv(50, 74%, 79%)
CMYKcmyk(0%, 11.9%, 74.3%, 20.8%)
CIE-LABlab(72.66, -4.67, 63.50)
CIE-LCHlch(72.66, 63.67, 94.21°)
OKLaboklab(76.28% -0.0196 0.1397)
OKLCHoklch(76.28% 0.141 98)
XYZxyz(40.8994, 44.6474, 9.7117)
Luminance0.4465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB234 #344CCA
analogous
#CA6734 #CAB234 #97CA34
triadic
#CAB234 #34CAB2 #B234CA
tetradic
#CAB234 #34CA67 #344CCA #CA3497
square
#CAB234 #34CA67 #344CCA #CA3497
split-complementary
#CAB234 #3497CA #6734CA
monochromatic
#695C1B #998727 #CAB234 #D7C564 #E4D795

Accessibility & contrast

On white

2.12
#CAB234 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#CAB234 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB234
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB234#FFFFFF#000000##000000
##CAB2341.002.129.939.93
#FFFFFF2.121.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE1D
Deuteranopia (green-blind)
#CAB63C
Tritanopia (blue-blind)
#DAA49A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab234;
/* rgb */ color: rgb(202, 178, 52);
/* oklch */ color: oklch(76.3% 0.141 98.0);
Tailwind
colors: {
  custom: {
    50: '#dec874',
    500: '#cab234',
    950: '#000000',
  },
}
SCSS
$custom: #cab234;
$custom-light: #dec874;
$custom-dark: #000000;
JSON
{
  "hex": "#cab234",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 52
  },
  "hsl": {
    "h": 50.4,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.76275,
    "c": 0.1411,
    "h": 98
  },
  "luminance": 0.44645
}

Semantic roles & 50–950 ramp

primary
#CAB234
secondary
#8B96CF
accent
#5FE246
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB234

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

Preview Lab → · Contrast checker → · Palette generator →

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