#BA9E30#BA9E30

#BA9E30 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.5% C 0.128 H 94.2°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#BA9E30
RGBrgb(186, 158, 48)
HSLhsl(48, 59%, 46%)
HSVhsv(48, 74%, 73%)
CMYKcmyk(0%, 15.1%, 74.2%, 27.1%)
CIE-LABlab(65.83, -1.26, 57.91)
CIE-LCHlch(65.83, 57.92, 91.25°)
OKLaboklab(70.51% -0.0094 0.1277)
OKLCHoklch(70.51% 0.128 94.2)
XYZxyz(33.0118, 35.1081, 7.8335)
Luminance0.3511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E30 #304CBA
analogous
#BA5930 #BA9E30 #91BA30
triadic
#BA9E30 #30BA9E #9E30BA
tetradic
#BA9E30 #30BA59 #304CBA #BA3091
square
#BA9E30 #30BA59 #304CBA #BA3091
split-complementary
#BA9E30 #3091BA #5930BA
monochromatic
#594B17 #897523 #BA9E30 #D3B954 #DFCD85

Accessibility & contrast

On white

2.62
#BA9E30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#BA9E30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E30
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E30#FFFFFF#000000##000000
##BA9E301.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1E
Deuteranopia (green-blind)
#B6A436
Tritanopia (blue-blind)
#C99188
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e30;
/* rgb */ color: rgb(186, 158, 48);
/* oklch */ color: oklch(70.5% 0.128 94.2);
Tailwind
colors: {
  custom: {
    50: '#d3ba70',
    500: '#ba9e30',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e30;
$custom-light: #d3ba70;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e30",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 48
  },
  "hsl": {
    "h": 47.826,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70509,
    "c": 0.12809,
    "h": 94.2
  },
  "luminance": 0.35106
}

Semantic roles & 50–950 ramp

primary
#BA9E30
secondary
#7D8CC9
accent
#65E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E30

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

Preview Lab → · Contrast checker → · Palette generator →

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