#CABF38#CABF38

#CABF38 is a light, vivid yellow. Relative luminance 0.501; OKLCH L 79.0% C 0.149 H 104.6°. Best body text is #000000 at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#CABF38
RGBrgb(202, 191, 56)
HSLhsl(55, 58%, 51%)
HSVhsv(55, 72%, 79%)
CMYKcmyk(0%, 5.4%, 72.3%, 20.8%)
CIE-LABlab(76.13, -11.21, 65.39)
CIE-LCHlch(76.13, 66.35, 99.73°)
OKLaboklab(79.04% -0.0377 0.1445)
OKLCHoklch(79.04% 0.149 104.6)
XYZxyz(43.7036, 50.1054, 11.1098)
Luminance0.5010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABF38 #3843CA
analogous
#CA7638 #CABF38 #8CCA38
triadic
#CABF38 #38CABF #BF38CA
tetradic
#CABF38 #38CA76 #3843CA #CA388C
square
#CABF38 #38CA76 #3843CA #CA388C
split-complementary
#CABF38 #388CCA #7638CA
monochromatic
#6B651D #9B9329 #CABF38 #D7CF68 #E4DE99

Accessibility & contrast

On white

1.91
#CABF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.02
#CABF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABF38
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABF38#FFFFFF#000000##000000
##CABF381.001.9111.0211.02
#FFFFFF1.911.0021.0021.00
#00000011.0221.001.001.00
##00000011.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B820
Deuteranopia (green-blind)
#D4BE42
Tritanopia (blue-blind)
#D9B2A5
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #cabf38;
/* rgb */ color: rgb(202, 191, 56);
/* oklch */ color: oklch(79.0% 0.149 104.6);
Tailwind
colors: {
  custom: {
    50: '#ded278',
    500: '#cabf38',
    950: '#000000',
  },
}
SCSS
$custom: #cabf38;
$custom-light: #ded278;
$custom-dark: #000000;
JSON
{
  "hex": "#cabf38",
  "rgb": {
    "r": 202,
    "g": 191,
    "b": 56
  },
  "hsl": {
    "h": 55.479,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.79042,
    "c": 0.14931,
    "h": 104.6
  },
  "luminance": 0.50104
}

Semantic roles & 50–950 ramp

primary
#CABF38
secondary
#313675
accent
#52E147
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CABF38

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

Preview Lab → · Contrast checker → · Palette generator →

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