#BAB838#BAB838

#BAB838 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.1% C 0.145 H 108.5°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#BAB838
RGBrgb(186, 184, 56)
HSLhsl(59, 54%, 47%)
HSVhsv(59, 70%, 73%)
CMYKcmyk(0%, 1.1%, 69.9%, 27.1%)
CIE-LABlab(72.90, -14.49, 61.79)
CIE-LCHlch(72.90, 63.46, 103.20°)
OKLaboklab(76.14% -0.046 0.1374)
OKLCHoklch(76.14% 0.145 108.5)
XYZxyz(38.1054, 45.0068, 10.4205)
Luminance0.4501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB838 #383ABA
analogous
#BA7738 #BAB838 #7BBA38
triadic
#BAB838 #38BAB8 #B838BA
tetradic
#BAB838 #38BA77 #383ABA #BA387B
square
#BAB838 #38BA77 #383ABA #BA387B
split-complementary
#BAB838 #387BBA #7738BA
monochromatic
#5C5B1C #8B892A #BAB838 #CFCD60 #DDDC8F

Accessibility & contrast

On white

2.10
#BAB838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#BAB838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB838
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB838#FFFFFF#000000##000000
##BAB8381.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B123
Deuteranopia (green-blind)
#C9B541
Tritanopia (blue-blind)
#C7AC9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab838;
/* rgb */ color: rgb(186, 184, 56);
/* oklch */ color: oklch(76.1% 0.145 108.5);
Tailwind
colors: {
  custom: {
    50: '#d2cd77',
    500: '#bab838',
    950: '#000000',
  },
}
SCSS
$custom: #bab838;
$custom-light: #d2cd77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab838",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 59.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.76137,
    "c": 0.14491,
    "h": 108.5
  },
  "luminance": 0.45006
}

Semantic roles & 50–950 ramp

primary
#BAB838
secondary
#8687C8
accent
#4DDD4B
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB838

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

Preview Lab → · Contrast checker → · Palette generator →

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