#CAB233#CAB233

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

Color values

HEX#CAB233
RGBrgb(202, 178, 51)
HSLhsl(50, 60%, 50%)
HSVhsv(50, 75%, 79%)
CMYKcmyk(0%, 11.9%, 74.8%, 20.8%)
CIE-LABlab(72.65, -4.71, 63.85)
CIE-LCHlch(72.65, 64.03, 94.22°)
OKLaboklab(76.27% -0.0198 0.1403)
OKLCHoklch(76.27% 0.142 98)
XYZxyz(40.8771, 44.6385, 9.5943)
Luminance0.4464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB233 #334BCA
analogous
#CA6733 #CAB233 #96CA33
triadic
#CAB233 #33CAB2 #B233CA
tetradic
#CAB233 #33CA67 #334BCA #CA3396
square
#CAB233 #33CA67 #334BCA #CA3396
split-complementary
#CAB233 #3396CA #6733CA
monochromatic
#685C1A #998727 #CAB233 #D8C563 #E4D794

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB233#FFFFFF#000000##000000
##CAB2331.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)
#C4AE1B
Deuteranopia (green-blind)
#CAB63B
Tritanopia (blue-blind)
#DAA499
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cab233;
/* rgb */ color: rgb(202, 178, 51);
/* oklch */ color: oklch(76.3% 0.142 98.0);
Tailwind
colors: {
  custom: {
    50: '#dec874',
    500: '#cab233',
    950: '#000000',
  },
}
SCSS
$custom: #cab233;
$custom-light: #dec874;
$custom-dark: #000000;
JSON
{
  "hex": "#cab233",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 51
  },
  "hsl": {
    "h": 50.464,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.76268,
    "c": 0.14168,
    "h": 98
  },
  "luminance": 0.44636
}

Semantic roles & 50–950 ramp

primary
#CAB233
secondary
#8A95CF
accent
#5EE345
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB233

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

Preview Lab → · Contrast checker → · Palette generator →

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