#BA9A30#BA9A30

#BA9A30 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.7% C 0.126 H 91.5°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#BA9A30
RGBrgb(186, 154, 48)
HSLhsl(46, 59%, 46%)
HSVhsv(46, 74%, 73%)
CMYKcmyk(0%, 17.2%, 74.2%, 27.1%)
CIE-LABlab(64.78, 0.89, 56.89)
CIE-LCHlch(64.78, 56.89, 89.10°)
OKLaboklab(69.68% -0.0032 0.1256)
OKLCHoklch(69.68% 0.126 91.5)
XYZxyz(32.3406, 33.7657, 7.6097)
Luminance0.3376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A30 #3050BA
analogous
#BA5530 #BA9A30 #95BA30
triadic
#BA9A30 #30BA9A #9A30BA
tetradic
#BA9A30 #30BA55 #3050BA #BA3095
square
#BA9A30 #30BA55 #3050BA #BA3095
split-complementary
#BA9A30 #3095BA #5530BA
monochromatic
#594917 #897223 #BA9A30 #D3B654 #DFCA85

Accessibility & contrast

On white

2.71
#BA9A30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#BA9A30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9A30
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9A30#FFFFFF#000000##000000
##BA9A301.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB981F
Deuteranopia (green-blind)
#B3A136
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a30;
/* rgb */ color: rgb(186, 154, 48);
/* oklch */ color: oklch(69.7% 0.126 91.5);
Tailwind
colors: {
  custom: {
    50: '#d3b770',
    500: '#ba9a30',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a30;
$custom-light: #d3b770;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a30",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 48
  },
  "hsl": {
    "h": 46.087,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69675,
    "c": 0.12561,
    "h": 91.5
  },
  "luminance": 0.33764
}

Semantic roles & 50–950 ramp

primary
#BA9A30
secondary
#7D8FC9
accent
#6AE246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9A30

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

Preview Lab → · Contrast checker → · Palette generator →

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