#BABF38#BABF38

#BABF38 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.7% C 0.152 H 111.6°. Best body text is #000000 at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#BABF38
RGBrgb(186, 191, 56)
HSLhsl(62, 55%, 48%)
HSVhsv(62, 71%, 75%)
CMYKcmyk(2.6%, 0%, 70.7%, 25.1%)
CIE-LABlab(74.82, -18.02, 63.67)
CIE-LCHlch(74.82, 66.17, 105.81°)
OKLaboklab(77.67% -0.0559 0.1414)
OKLCHoklch(77.67% 0.152 111.6)
XYZxyz(39.5956, 47.9872, 10.9173)
Luminance0.4799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABF38 #3D38BF
analogous
#BF8038 #BABF38 #76BF38
triadic
#BABF38 #38BABF #BF38BA
tetradic
#BABF38 #38BF80 #3D38BF #BF3876
square
#BABF38 #38BF80 #3D38BF #BF3876
split-complementary
#BABF38 #3876BF #8038BF
monochromatic
#5E601C #8C902A #BABF38 #CDD163 #DCDF92

Accessibility & contrast

On white

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

On black

10.60
#BABF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABF38
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABF38#FFFFFF#000000##000000
##BABF381.001.9810.6010.60
#FFFFFF1.981.0021.0021.00
#00000010.6021.001.001.00
##00000010.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB620
Deuteranopia (green-blind)
#CEBA42
Tritanopia (blue-blind)
#C7B3A5
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #babf38;
/* rgb */ color: rgb(186, 191, 56);
/* oklch */ color: oklch(77.7% 0.152 111.6);
Tailwind
colors: {
  custom: {
    50: '#d2d278',
    500: '#babf38',
    950: '#000000',
  },
}
SCSS
$custom: #babf38;
$custom-light: #d2d278;
$custom-dark: #000000;
JSON
{
  "hex": "#babf38",
  "rgb": {
    "r": 186,
    "g": 191,
    "b": 56
  },
  "hsl": {
    "h": 62.222,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.77671,
    "c": 0.15204,
    "h": 111.6
  },
  "luminance": 0.47986
}

Semantic roles & 50–950 ramp

primary
#BABF38
secondary
#8B89CA
accent
#4ADE4F
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151409
muted
#83827B

Preview Lab

Preview with #BABF38

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

Preview Lab → · Contrast checker → · Palette generator →

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