#CABA38#CABA38

#CABA38 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.0% C 0.145 H 102.1°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#CABA38
RGBrgb(202, 186, 56)
HSLhsl(53, 58%, 51%)
HSVhsv(53, 72%, 79%)
CMYKcmyk(0%, 7.9%, 72.3%, 20.8%)
CIE-LABlab(74.80, -8.64, 64.11)
CIE-LCHlch(74.80, 64.69, 97.68°)
OKLaboklab(77.98% -0.0304 0.1418)
OKLCHoklch(77.98% 0.145 102.1)
XYZxyz(42.6317, 47.9618, 10.7526)
Luminance0.4796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABA38 #3848CA
analogous
#CA7138 #CABA38 #91CA38
triadic
#CABA38 #38CABA #BA38CA
tetradic
#CABA38 #38CA71 #3848CA #CA3891
square
#CABA38 #38CA71 #3848CA #CA3891
split-complementary
#CABA38 #3891CA #7138CA
monochromatic
#6B621D #9B8F29 #CABA38 #D7CB68 #E4DC99

Accessibility & contrast

On white

1.98
#CABA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#CABA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABA38
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABA38#FFFFFF#000000##000000
##CABA381.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB422
Deuteranopia (green-blind)
#D0BB41
Tritanopia (blue-blind)
#D9ADA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #caba38;
/* rgb */ color: rgb(202, 186, 56);
/* oklch */ color: oklch(78.0% 0.145 102.1);
Tailwind
colors: {
  custom: {
    50: '#dece77',
    500: '#caba38',
    950: '#000000',
  },
}
SCSS
$custom: #caba38;
$custom-light: #dece77;
$custom-dark: #000000;
JSON
{
  "hex": "#caba38",
  "rgb": {
    "r": 202,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 53.425,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77982,
    "c": 0.145,
    "h": 102.1
  },
  "luminance": 0.4796
}

Semantic roles & 50–950 ramp

primary
#CABA38
secondary
#8E96CF
accent
#58E147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CABA38

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

Preview Lab → · Contrast checker → · Palette generator →

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