#BAB236#BAB236

#BAB236 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.8% C 0.140 H 105.6°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#BAB236
RGBrgb(186, 178, 54)
HSLhsl(56, 55%, 47%)
HSVhsv(56, 71%, 73%)
CMYKcmyk(0%, 4.3%, 71%, 27.1%)
CIE-LABlab(71.25, -11.52, 60.91)
CIE-LCHlch(71.25, 61.99, 100.71°)
OKLaboklab(74.82% -0.0378 0.1352)
OKLCHoklch(74.82% 0.14 105.6)
XYZxyz(36.8374, 42.5476, 9.7614)
Luminance0.4255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB236 #363EBA
analogous
#BA7036 #BAB236 #80BA36
triadic
#BAB236 #36BAB2 #B236BA
tetradic
#BAB236 #36BA70 #363EBA #BA3680
square
#BAB236 #36BA70 #363EBA #BA3680
split-complementary
#BAB236 #3680BA #7036BA
monochromatic
#5B571A #8B8528 #BAB236 #D0C95D #DED98D

Accessibility & contrast

On white

2.21
#BAB236 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#BAB236 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB236
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB236#FFFFFF#000000##000000
##BAB2361.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC21
Deuteranopia (green-blind)
#C4B13F
Tritanopia (blue-blind)
#C8A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab236;
/* rgb */ color: rgb(186, 178, 54);
/* oklch */ color: oklch(74.8% 0.140 105.6);
Tailwind
colors: {
  custom: {
    50: '#d2c875',
    500: '#bab236',
    950: '#000000',
  },
}
SCSS
$custom: #bab236;
$custom-light: #d2c875;
$custom-dark: #000000;
JSON
{
  "hex": "#bab236",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 54
  },
  "hsl": {
    "h": 56.364,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.74818,
    "c": 0.14042,
    "h": 105.6
  },
  "luminance": 0.42546
}

Semantic roles & 50–950 ramp

primary
#BAB236
secondary
#8488C8
accent
#52DE49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB236

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

Preview Lab → · Contrast checker → · Palette generator →

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