#BA9B27#BA9B27

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

Color values

HEX#BA9B27
RGBrgb(186, 155, 39)
HSLhsl(47, 65%, 44%)
HSVhsv(47, 79%, 73%)
CMYKcmyk(0%, 16.7%, 79%, 27.1%)
CIE-LABlab(64.99, -0.02, 60.34)
CIE-LCHlch(64.99, 60.34, 90.02°)
OKLaboklab(69.82% -0.0068 0.1311)
OKLCHoklch(69.82% 0.131 93)
XYZxyz(32.3391, 34.0302, 6.7842)
Luminance0.3403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B27 #2746BA
analogous
#BA5227 #BA9B27 #90BA27
triadic
#BA9B27 #27BA9B #9B27BA
tetradic
#BA9B27 #27BA52 #2746BA #BA2790
square
#BA9B27 #27BA52 #2746BA #BA2790
split-complementary
#BA9B27 #2790BA #5227BA
monochromatic
#554712 #87711C #BA9B27 #D8B946 #E3CC79

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9B27#FFFFFF#000000##000000
##BA9B271.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)
#AD980C
Deuteranopia (green-blind)
#B4A22F
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b27;
/* rgb */ color: rgb(186, 155, 39);
/* oklch */ color: oklch(69.8% 0.131 93.0);
Tailwind
colors: {
  custom: {
    50: '#d3b86b',
    500: '#ba9b27',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b27;
$custom-light: #d3b86b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b27",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 39
  },
  "hsl": {
    "h": 47.347,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.69824,
    "c": 0.13128,
    "h": 93
  },
  "luminance": 0.34028
}

Semantic roles & 50–950 ramp

primary
#BA9B27
secondary
#7285CB
accent
#63E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B27

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

Preview Lab → · Contrast checker → · Palette generator →

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