#BA9E40#BA9E40

#BA9E40 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.6% C 0.117 H 92.5°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#BA9E40
RGBrgb(186, 158, 64)
HSLhsl(46, 49%, 49%)
HSVhsv(46, 66%, 73%)
CMYKcmyk(0%, 15.1%, 65.6%, 27.1%)
CIE-LABlab(65.95, -0.40, 51.38)
CIE-LCHlch(65.95, 51.38, 90.45°)
OKLaboklab(70.64% -0.0051 0.1168)
OKLCHoklch(70.64% 0.117 92.5)
XYZxyz(33.4036, 35.2648, 9.8968)
Luminance0.3526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E40 #405CBA
analogous
#BA6140 #BA9E40 #99BA40
triadic
#BA9E40 #40BA9E #9E40BA
tetradic
#BA9E40 #40BA61 #405CBA #BA4099
square
#BA9E40 #40BA61 #405CBA #BA4099
split-complementary
#BA9E40 #4099BA #6140BA
monochromatic
#5F5121 #8C7730 #BA9E40 #CCB66B #DCCC99

Accessibility & contrast

On white

2.61
#BA9E40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#BA9E40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E40
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E40#FFFFFF#000000##000000
##BA9E401.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C35
Deuteranopia (green-blind)
#B5A444
Tritanopia (blue-blind)
#C9928A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e40;
/* rgb */ color: rgb(186, 158, 64);
/* oklch */ color: oklch(70.6% 0.117 92.5);
Tailwind
colors: {
  custom: {
    50: '#d2ba79',
    500: '#ba9e40',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e40;
$custom-light: #d2ba79;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e40",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 64
  },
  "hsl": {
    "h": 46.23,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70644,
    "c": 0.11686,
    "h": 92.5
  },
  "luminance": 0.35263
}

Semantic roles & 50–950 ramp

primary
#BA9E40
secondary
#8E9BC8
accent
#6FD84F
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9E40

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

Preview Lab → · Contrast checker → · Palette generator →

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