#BA9F30#BA9F30

#BA9F30 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.7% C 0.129 H 94.9°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#BA9F30
RGBrgb(186, 159, 48)
HSLhsl(48, 59%, 46%)
HSVhsv(48, 74%, 73%)
CMYKcmyk(0%, 14.5%, 74.2%, 27.1%)
CIE-LABlab(66.10, -1.80, 58.16)
CIE-LCHlch(66.10, 58.19, 91.77°)
OKLaboklab(70.72% -0.0109 0.1283)
OKLCHoklch(70.72% 0.129 94.9)
XYZxyz(33.1831, 35.4506, 7.8906)
Luminance0.3545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F30 #304BBA
analogous
#BA5A30 #BA9F30 #90BA30
triadic
#BA9F30 #30BA9F #9F30BA
tetradic
#BA9F30 #30BA5A #304BBA #BA3090
square
#BA9F30 #30BA5A #304BBA #BA3090
split-complementary
#BA9F30 #3090BA #5A30BA
monochromatic
#594C17 #897523 #BA9F30 #D3BA54 #DFCE85

Accessibility & contrast

On white

2.60
#BA9F30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#BA9F30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F30
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F30#FFFFFF#000000##000000
##BA9F301.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1D
Deuteranopia (green-blind)
#B7A437
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f30;
/* rgb */ color: rgb(186, 159, 48);
/* oklch */ color: oklch(70.7% 0.129 94.9);
Tailwind
colors: {
  custom: {
    50: '#d3bb70',
    500: '#ba9f30',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f30;
$custom-light: #d3bb70;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f30",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 48
  },
  "hsl": {
    "h": 48.261,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70719,
    "c": 0.12876,
    "h": 94.9
  },
  "luminance": 0.35449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9F30

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

Preview Lab → · Contrast checker → · Palette generator →

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