#BAB935#BAB935

#BAB935 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.148 H 109.0°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#BAB935
RGBrgb(186, 185, 53)
HSLhsl(60, 56%, 47%)
HSVhsv(60, 72%, 73%)
CMYKcmyk(0%, 0.5%, 71.5%, 27.1%)
CIE-LABlab(73.15, -15.15, 63.13)
CIE-LCHlch(73.15, 64.92, 103.49°)
OKLaboklab(76.33% -0.0481 0.1397)
OKLCHoklch(76.33% 0.148 109)
XYZxyz(38.2427, 45.3952, 10.1151)
Luminance0.4539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB935 #3536BA
analogous
#BA7735 #BAB935 #79BA35
triadic
#BAB935 #35BAB9 #B935BA
tetradic
#BAB935 #35BA77 #3536BA #BA3579
square
#BAB935 #35BA77 #3536BA #BA3579
split-complementary
#BAB935 #3579BA #7735BA
monochromatic
#5B5A1A #8A8A27 #BAB935 #D0D05C #DEDD8B

Accessibility & contrast

On white

2.08
#BAB935 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#BAB935 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB935
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB935#FFFFFF#000000##000000
##BAB9351.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B11D
Deuteranopia (green-blind)
#CAB63F
Tritanopia (blue-blind)
#C7AD9F
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab935;
/* rgb */ color: rgb(186, 185, 53);
/* oklch */ color: oklch(76.3% 0.148 109.0);
Tailwind
colors: {
  custom: {
    50: '#d2cd75',
    500: '#bab935',
    950: '#000000',
  },
}
SCSS
$custom: #bab935;
$custom-light: #d2cd75;
$custom-dark: #000000;
JSON
{
  "hex": "#bab935",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 53
  },
  "hsl": {
    "h": 59.549,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.76334,
    "c": 0.14779,
    "h": 109
  },
  "luminance": 0.45394
}

Semantic roles & 50–950 ramp

primary
#BAB935
secondary
#8283C8
accent
#4ADF49
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB935

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

Preview Lab → · Contrast checker → · Palette generator →

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