#BA9D2E#BA9D2E

#BA9D2E is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.3% C 0.129 H 93.7°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#BA9D2E
RGBrgb(186, 157, 46)
HSLhsl(48, 60%, 45%)
HSVhsv(48, 75%, 73%)
CMYKcmyk(0%, 15.6%, 75.3%, 27.1%)
CIE-LABlab(65.56, -0.82, 58.39)
CIE-LCHlch(65.56, 58.40, 90.80°)
OKLaboklab(70.29% -0.0083 0.1284)
OKLCHoklch(70.29% 0.129 93.7)
XYZxyz(32.8016, 34.7522, 7.5644)
Luminance0.3475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D2E #2E4BBA
analogous
#BA572E #BA9D2E #91BA2E
triadic
#BA9D2E #2EBA9D #9D2EBA
tetradic
#BA9D2E #2EBA57 #2E4BBA #BA2E91
square
#BA9D2E #2EBA57 #2E4BBA #BA2E91
split-complementary
#BA9D2E #2E91BA #572EBA
monochromatic
#584A16 #897422 #BA9D2E #D4B951 #E0CD82

Accessibility & contrast

On white

2.64
#BA9D2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#BA9D2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D2E
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D2E#FFFFFF#000000##000000
##BA9D2E1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1A
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d2e;
/* rgb */ color: rgb(186, 157, 46);
/* oklch */ color: oklch(70.3% 0.129 93.7);
Tailwind
colors: {
  custom: {
    50: '#d3b96f',
    500: '#ba9d2e',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d2e;
$custom-light: #d3b96f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d2e",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 46
  },
  "hsl": {
    "h": 47.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70286,
    "c": 0.12865,
    "h": 93.7
  },
  "luminance": 0.3475
}

Semantic roles & 50–950 ramp

primary
#BA9D2E
secondary
#7B8BC9
accent
#65E344
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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