#BAB237#BAB237

#BAB237 is a light, vivid yellow. Relative luminance 0.426; 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#BAB237
RGBrgb(186, 178, 55)
HSLhsl(56, 54%, 47%)
HSVhsv(56, 70%, 73%)
CMYKcmyk(0%, 4.3%, 70.4%, 27.1%)
CIE-LABlab(71.25, -11.47, 60.54)
CIE-LCHlch(71.25, 61.62, 100.72°)
OKLaboklab(74.83% -0.0376 0.1346)
OKLCHoklch(74.83% 0.14 105.6)
XYZxyz(36.8612, 42.5571, 9.8864)
Luminance0.4256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB237 #373FBA
analogous
#BA7137 #BAB237 #81BA37
triadic
#BAB237 #37BAB2 #B237BA
tetradic
#BAB237 #37BA71 #373FBA #BA3781
square
#BAB237 #37BA71 #373FBA #BA3781
split-complementary
#BAB237 #3781BA #7137BA
monochromatic
#5C581B #8B8529 #BAB237 #D0C95F #DED98E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB237#FFFFFF#000000##000000
##BAB2371.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)
#C1AC23
Deuteranopia (green-blind)
#C4B13F
Tritanopia (blue-blind)
#C8A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab237;
/* rgb */ color: rgb(186, 178, 55);
/* oklch */ color: oklch(74.8% 0.140 105.6);
Tailwind
colors: {
  custom: {
    50: '#d2c876',
    500: '#bab237',
    950: '#000000',
  },
}
SCSS
$custom: #bab237;
$custom-light: #d2c876;
$custom-dark: #000000;
JSON
{
  "hex": "#bab237",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 55
  },
  "hsl": {
    "h": 56.336,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.74825,
    "c": 0.13977,
    "h": 105.6
  },
  "luminance": 0.42556
}

Semantic roles & 50–950 ramp

primary
#BAB237
secondary
#8589C8
accent
#53DE4A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB237

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

Preview Lab → · Contrast checker → · Palette generator →

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