#BAB238#BAB238

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

Color values

HEX#BAB238
RGBrgb(186, 178, 56)
HSLhsl(56, 54%, 47%)
HSVhsv(56, 70%, 73%)
CMYKcmyk(0%, 4.3%, 69.9%, 27.1%)
CIE-LABlab(71.26, -11.42, 60.17)
CIE-LCHlch(71.26, 61.24, 100.74°)
OKLaboklab(74.83% -0.0373 0.134)
OKLCHoklch(74.83% 0.139 105.6)
XYZxyz(36.8854, 42.5668, 10.0139)
Luminance0.4256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB238 #3840BA
analogous
#BA7138 #BAB238 #81BA38
triadic
#BAB238 #38BAB2 #B238BA
tetradic
#BAB238 #38BA71 #3840BA #BA3881
square
#BAB238 #38BA71 #3840BA #BA3881
split-complementary
#BAB238 #3881BA #7138BA
monochromatic
#5C581C #8B852A #BAB238 #CFC860 #DDD88F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB238#FFFFFF#000000##000000
##BAB2381.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)
#C1AC25
Deuteranopia (green-blind)
#C4B140
Tritanopia (blue-blind)
#C8A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab238;
/* rgb */ color: rgb(186, 178, 56);
/* oklch */ color: oklch(74.8% 0.139 105.6);
Tailwind
colors: {
  custom: {
    50: '#d2c876',
    500: '#bab238',
    950: '#000000',
  },
}
SCSS
$custom: #bab238;
$custom-light: #d2c876;
$custom-dark: #000000;
JSON
{
  "hex": "#bab238",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 56.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.74832,
    "c": 0.13911,
    "h": 105.6
  },
  "luminance": 0.42565
}

Semantic roles & 50–950 ramp

primary
#BAB238
secondary
#868AC8
accent
#54DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB238

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

Preview Lab → · Contrast checker → · Palette generator →

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