#BA9B28#BA9B28

#BA9B28 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.131 H 92.9°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B28
RGBrgb(186, 155, 40)
HSLhsl(47, 65%, 44%)
HSVhsv(47, 78%, 73%)
CMYKcmyk(0%, 16.7%, 78.5%, 27.1%)
CIE-LABlab(64.99, 0.02, 60.01)
CIE-LCHlch(64.99, 60.01, 89.98°)
OKLaboklab(69.83% -0.0066 0.1306)
OKLCHoklch(69.83% 0.131 92.9)
XYZxyz(32.3559, 34.0370, 6.8726)
Luminance0.3403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B28 #2847BA
analogous
#BA5228 #BA9B28 #90BA28
triadic
#BA9B28 #28BA9B #9B28BA
tetradic
#BA9B28 #28BA52 #2847BA #BA2890
square
#BA9B28 #28BA52 #2847BA #BA2890
split-complementary
#BA9B28 #2890BA #5228BA
monochromatic
#554712 #88711D #BA9B28 #D8B948 #E2CC7A

Accessibility & contrast

On white

2.69
#BA9B28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#BA9B28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B28
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B28#FFFFFF#000000##000000
##BA9B281.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD980F
Deuteranopia (green-blind)
#B4A22F
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b28;
/* rgb */ color: rgb(186, 155, 40);
/* oklch */ color: oklch(69.8% 0.131 92.9);
Tailwind
colors: {
  custom: {
    50: '#d3b86c',
    500: '#ba9b28',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b28;
$custom-light: #d3b86c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b28",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 40
  },
  "hsl": {
    "h": 47.26,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.6983,
    "c": 0.13077,
    "h": 92.9
  },
  "luminance": 0.34035
}

Semantic roles & 50–950 ramp

primary
#BA9B28
secondary
#7386CA
accent
#64E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B28

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

Preview Lab → · Contrast checker → · Palette generator →

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