#BAB234#BAB234

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

Color values

HEX#BAB234
RGBrgb(186, 178, 52)
HSLhsl(56, 56%, 47%)
HSVhsv(56, 72%, 73%)
CMYKcmyk(0%, 4.3%, 72%, 27.1%)
CIE-LABlab(71.23, -11.61, 61.64)
CIE-LCHlch(71.23, 62.72, 100.67°)
OKLaboklab(74.8% -0.0383 0.1364)
OKLCHoklch(74.8% 0.142 105.7)
XYZxyz(36.7914, 42.5292, 9.5191)
Luminance0.4253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB234 #343CBA
analogous
#BA6F34 #BAB234 #7FBA34
triadic
#BAB234 #34BAB2 #B234BA
tetradic
#BAB234 #34BA6F #343CBA #BA347F
square
#BAB234 #34BA6F #343CBA #BA347F
split-complementary
#BAB234 #347FBA #6F34BA
monochromatic
#5A5619 #8A8427 #BAB234 #D1CA5A #DED98A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB234#FFFFFF#000000##000000
##BAB2341.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)
#C1AB1E
Deuteranopia (green-blind)
#C5B13D
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab234;
/* rgb */ color: rgb(186, 178, 52);
/* oklch */ color: oklch(74.8% 0.142 105.7);
Tailwind
colors: {
  custom: {
    50: '#d2c874',
    500: '#bab234',
    950: '#000000',
  },
}
SCSS
$custom: #bab234;
$custom-light: #d2c874;
$custom-dark: #000000;
JSON
{
  "hex": "#bab234",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 52
  },
  "hsl": {
    "h": 56.418,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.74804,
    "c": 0.14168,
    "h": 105.7
  },
  "luminance": 0.42528
}

Semantic roles & 50–950 ramp

primary
#BAB234
secondary
#8186C8
accent
#51E048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB234

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

Preview Lab → · Contrast checker → · Palette generator →

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