#BAB230#BAB230

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

Color values

HEX#BAB230
RGBrgb(186, 178, 48)
HSLhsl(57, 59%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 4.3%, 74.2%, 27.1%)
CIE-LABlab(71.21, -11.80, 63.03)
CIE-LCHlch(71.21, 64.13, 100.60°)
OKLaboklab(74.78% -0.0392 0.1386)
OKLCHoklch(74.78% 0.144 105.8)
XYZxyz(36.7051, 42.4947, 9.0646)
Luminance0.4249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB230 #3038BA
analogous
#BA6D30 #BAB230 #7DBA30
triadic
#BAB230 #30BAB2 #B230BA
tetradic
#BAB230 #30BA6D #3038BA #BA307D
square
#BAB230 #30BA6D #3038BA #BA307D
split-complementary
#BAB230 #307DBA #6D30BA
monochromatic
#595517 #898323 #BAB230 #D3CC54 #DFDA85

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB230#FFFFFF#000000##000000
##BAB2301.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)
#C2AB16
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab230;
/* rgb */ color: rgb(186, 178, 48);
/* oklch */ color: oklch(74.8% 0.144 105.8);
Tailwind
colors: {
  custom: {
    50: '#d2c872',
    500: '#bab230',
    950: '#000000',
  },
}
SCSS
$custom: #bab230;
$custom-light: #d2c872;
$custom-dark: #000000;
JSON
{
  "hex": "#bab230",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 56.522,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74777,
    "c": 0.14406,
    "h": 105.8
  },
  "luminance": 0.42493
}

Semantic roles & 50–950 ramp

primary
#BAB230
secondary
#7D81C9
accent
#4FE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB230

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

Preview Lab → · Contrast checker → · Palette generator →

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