#BA9D30#BA9D30

#BA9D30 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.3% C 0.127 H 93.5°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#BA9D30
RGBrgb(186, 157, 48)
HSLhsl(47, 59%, 46%)
HSVhsv(47, 74%, 73%)
CMYKcmyk(0%, 15.6%, 74.2%, 27.1%)
CIE-LABlab(65.57, -0.73, 57.65)
CIE-LCHlch(65.57, 57.66, 90.72°)
OKLaboklab(70.3% -0.0079 0.1272)
OKLCHoklch(70.3% 0.127 93.5)
XYZxyz(32.8420, 34.7683, 7.7769)
Luminance0.3477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D30 #304DBA
analogous
#BA5830 #BA9D30 #92BA30
triadic
#BA9D30 #30BA9D #9D30BA
tetradic
#BA9D30 #30BA58 #304DBA #BA3092
square
#BA9D30 #30BA58 #304DBA #BA3092
split-complementary
#BA9D30 #3092BA #5830BA
monochromatic
#594B17 #897423 #BA9D30 #D3B854 #DFCC85

Accessibility & contrast

On white

2.64
#BA9D30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#BA9D30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D30
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D30#FFFFFF#000000##000000
##BA9D301.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1E
Deuteranopia (green-blind)
#B5A336
Tritanopia (blue-blind)
#C99088
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d30;
/* rgb */ color: rgb(186, 157, 48);
/* oklch */ color: oklch(70.3% 0.127 93.5);
Tailwind
colors: {
  custom: {
    50: '#d3b970',
    500: '#ba9d30',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d30;
$custom-light: #d3b970;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d30",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 48
  },
  "hsl": {
    "h": 47.391,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.703,
    "c": 0.12744,
    "h": 93.5
  },
  "luminance": 0.34766
}

Semantic roles & 50–950 ramp

primary
#BA9D30
secondary
#7D8DC9
accent
#67E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D30

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

Preview Lab → · Contrast checker → · Palette generator →

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