#BAB638#BAB638

#BAB638 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.7% C 0.143 H 107.6°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#BAB638
RGBrgb(186, 182, 56)
HSLhsl(58, 54%, 47%)
HSVhsv(58, 70%, 73%)
CMYKcmyk(0%, 2.2%, 69.9%, 27.1%)
CIE-LABlab(72.35, -13.47, 61.25)
CIE-LCHlch(72.35, 62.71, 102.40°)
OKLaboklab(75.7% -0.0431 0.1363)
OKLCHoklch(75.7% 0.143 107.6)
XYZxyz(37.6929, 44.1818, 10.2830)
Luminance0.4418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB638 #383CBA
analogous
#BA7538 #BAB638 #7DBA38
triadic
#BAB638 #38BAB6 #B638BA
tetradic
#BAB638 #38BA75 #383CBA #BA387D
square
#BAB638 #38BA75 #383CBA #BA387D
split-complementary
#BAB638 #387DBA #7538BA
monochromatic
#5C5A1C #8B882A #BAB638 #CFCC60 #DDDB8F

Accessibility & contrast

On white

2.13
#BAB638 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#BAB638 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB638
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB638#FFFFFF#000000##000000
##BAB6381.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF23
Deuteranopia (green-blind)
#C7B441
Tritanopia (blue-blind)
#C7AA9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab638;
/* rgb */ color: rgb(186, 182, 56);
/* oklch */ color: oklch(75.7% 0.143 107.6);
Tailwind
colors: {
  custom: {
    50: '#d2cb77',
    500: '#bab638',
    950: '#000000',
  },
}
SCSS
$custom: #bab638;
$custom-light: #d2cb77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab638",
  "rgb": {
    "r": 186,
    "g": 182,
    "b": 56
  },
  "hsl": {
    "h": 58.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75701,
    "c": 0.14294,
    "h": 107.6
  },
  "luminance": 0.44181
}

Semantic roles & 50–950 ramp

primary
#BAB638
secondary
#8688C8
accent
#4FDD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB638

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

Preview Lab → · Contrast checker → · Palette generator →

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