#BABB38#BABB38

#BABB38 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 76.8% C 0.148 H 109.9°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#BABB38
RGBrgb(186, 187, 56)
HSLhsl(60, 54%, 48%)
HSVhsv(60, 70%, 73%)
CMYKcmyk(0.5%, 0%, 70.1%, 26.7%)
CIE-LABlab(73.72, -16.01, 62.59)
CIE-LCHlch(73.72, 64.61, 104.35°)
OKLaboklab(76.79% -0.0503 0.1391)
OKLCHoklch(76.79% 0.148 109.9)
XYZxyz(38.7352, 46.2664, 10.6305)
Luminance0.4627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABB38 #3938BB
analogous
#BB7A38 #BABB38 #78BB38
triadic
#BABB38 #38BABB #BB38BA
tetradic
#BABB38 #38BB7A #3938BB #BB3878
square
#BABB38 #38BB7A #3938BB #BB3878
split-complementary
#BABB38 #3878BB #7A38BB
monochromatic
#5C5D1C #8B8C2A #BABB38 #CFD061 #DDDE90

Accessibility & contrast

On white

2.05
#BABB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#BABB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABB38
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABB38#FFFFFF#000000##000000
##BABB381.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB322
Deuteranopia (green-blind)
#CBB742
Tritanopia (blue-blind)
#C7AFA1
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #babb38;
/* rgb */ color: rgb(186, 187, 56);
/* oklch */ color: oklch(76.8% 0.148 109.9);
Tailwind
colors: {
  custom: {
    50: '#d2cf77',
    500: '#babb38',
    950: '#000000',
  },
}
SCSS
$custom: #babb38;
$custom-light: #d2cf77;
$custom-dark: #000000;
JSON
{
  "hex": "#babb38",
  "rgb": {
    "r": 186,
    "g": 187,
    "b": 56
  },
  "hsl": {
    "h": 60.458,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76793,
    "c": 0.14792,
    "h": 109.9
  },
  "luminance": 0.46265
}

Semantic roles & 50–950 ramp

primary
#BABB38
secondary
#8786C8
accent
#4BDD4C
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BABB38

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

Preview Lab → · Contrast checker → · Palette generator →

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