#BAB233#BAB233

#BAB233 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.50:1 contrast (WCAG AA passes).

Color values

HEX#BAB233
RGBrgb(186, 178, 51)
HSLhsl(56, 57%, 46%)
HSVhsv(56, 73%, 73%)
CMYKcmyk(0%, 4.3%, 72.6%, 27.1%)
CIE-LABlab(71.23, -11.66, 61.99)
CIE-LCHlch(71.23, 63.08, 100.65°)
OKLaboklab(74.8% -0.0385 0.137)
OKLCHoklch(74.8% 0.142 105.7)
XYZxyz(36.7691, 42.5203, 9.4017)
Luminance0.4252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB233 #333BBA
analogous
#BA6E33 #BAB233 #7FBA33
triadic
#BAB233 #33BAB2 #B233BA
tetradic
#BAB233 #33BA6E #333BBA #BA337F
square
#BAB233 #33BA6E #333BBA #BA337F
split-complementary
#BAB233 #337FBA #6E33BA
monochromatic
#5A5619 #8A8426 #BAB233 #D1CA59 #DFDA89

Accessibility & contrast

On white

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

On black

9.50
#BAB233 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB233
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB233#FFFFFF#000000##000000
##BAB2331.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB1C
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab233;
/* rgb */ color: rgb(186, 178, 51);
/* oklch */ color: oklch(74.8% 0.142 105.7);
Tailwind
colors: {
  custom: {
    50: '#d2c874',
    500: '#bab233',
    950: '#000000',
  },
}
SCSS
$custom: #bab233;
$custom-light: #d2c874;
$custom-dark: #000000;
JSON
{
  "hex": "#bab233",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 51
  },
  "hsl": {
    "h": 56.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74797,
    "c": 0.14229,
    "h": 105.7
  },
  "luminance": 0.42519
}

Semantic roles & 50–950 ramp

primary
#BAB233
secondary
#8085C9
accent
#51E048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB233

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

Preview Lab → · Contrast checker → · Palette generator →

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