#BAB730#BAB730

#BAB730 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.9% C 0.149 H 108.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#BAB730
RGBrgb(186, 183, 48)
HSLhsl(59, 59%, 46%)
HSVhsv(59, 74%, 73%)
CMYKcmyk(0%, 1.6%, 74.2%, 27.1%)
CIE-LABlab(72.58, -14.36, 64.32)
CIE-LCHlch(72.58, 65.90, 102.59°)
OKLaboklab(75.87% -0.0464 0.1413)
OKLCHoklch(75.87% 0.149 108.2)
XYZxyz(37.7181, 44.5207, 9.4022)
Luminance0.4452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB730 #3033BA
analogous
#BA7230 #BAB730 #78BA30
triadic
#BAB730 #30BAB7 #B730BA
tetradic
#BAB730 #30BA72 #3033BA #BA3078
square
#BAB730 #30BA72 #3033BA #BA3078
split-complementary
#BAB730 #3078BA #7230BA
monochromatic
#595717 #898723 #BAB730 #D3D054 #DFDE85

Accessibility & contrast

On white

2.12
#BAB730 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#BAB730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB730
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB730#FFFFFF#000000##000000
##BAB7301.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B013
Deuteranopia (green-blind)
#C9B43B
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab730;
/* rgb */ color: rgb(186, 183, 48);
/* oklch */ color: oklch(75.9% 0.149 108.2);
Tailwind
colors: {
  custom: {
    50: '#d2cc73',
    500: '#bab730',
    950: '#000000',
  },
}
SCSS
$custom: #bab730;
$custom-light: #d2cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab730",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 48
  },
  "hsl": {
    "h": 58.696,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75865,
    "c": 0.14876,
    "h": 108.2
  },
  "luminance": 0.44519
}

Semantic roles & 50–950 ramp

primary
#BAB730
secondary
#7D7FC9
accent
#49E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB730

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

Preview Lab → · Contrast checker → · Palette generator →

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