#BAB038#BAB038

#BAB038 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.4% C 0.137 H 104.5°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#BAB038
RGBrgb(186, 176, 56)
HSLhsl(55, 54%, 47%)
HSVhsv(55, 70%, 73%)
CMYKcmyk(0%, 5.4%, 69.9%, 27.1%)
CIE-LABlab(70.72, -10.38, 59.63)
CIE-LCHlch(70.72, 60.53, 99.87°)
OKLaboklab(74.4% -0.0344 0.1329)
OKLCHoklch(74.4% 0.137 104.5)
XYZxyz(36.4903, 41.7767, 9.8822)
Luminance0.4178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB038 #3842BA
analogous
#BA6F38 #BAB038 #83BA38
triadic
#BAB038 #38BAB0 #B038BA
tetradic
#BAB038 #38BA6F #3842BA #BA3883
square
#BAB038 #38BA6F #3842BA #BA3883
split-complementary
#BAB038 #3883BA #6F38BA
monochromatic
#5C571C #8B832A #BAB038 #CFC760 #DDD78F

Accessibility & contrast

On white

2.24
#BAB038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#BAB038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB038
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB038#FFFFFF#000000##000000
##BAB0381.002.249.359.35
#FFFFFF2.241.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA25
Deuteranopia (green-blind)
#C3AF40
Tritanopia (blue-blind)
#C8A498
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab038;
/* rgb */ color: rgb(186, 176, 56);
/* oklch */ color: oklch(74.4% 0.137 104.5);
Tailwind
colors: {
  custom: {
    50: '#d2c776',
    500: '#bab038',
    950: '#000000',
  },
}
SCSS
$custom: #bab038;
$custom-light: #d2c776;
$custom-dark: #000000;
JSON
{
  "hex": "#bab038",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 56
  },
  "hsl": {
    "h": 55.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.744,
    "c": 0.13726,
    "h": 104.5
  },
  "luminance": 0.41775
}

Semantic roles & 50–950 ramp

primary
#BAB038
secondary
#868BC8
accent
#56DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB038

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

Preview Lab → · Contrast checker → · Palette generator →

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