#BA9B2D#BA9B2D

#BA9B2D is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.9% C 0.128 H 92.5°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B2D
RGBrgb(186, 155, 45)
HSLhsl(47, 61%, 45%)
HSVhsv(47, 76%, 73%)
CMYKcmyk(0%, 16.7%, 75.8%, 27.1%)
CIE-LABlab(65.02, 0.22, 58.26)
CIE-LCHlch(65.02, 58.26, 89.78°)
OKLaboklab(69.86% -0.0055 0.1279)
OKLCHoklch(69.86% 0.128 92.5)
XYZxyz(32.4465, 34.0732, 7.3499)
Luminance0.3407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B2D #2D4CBA
analogous
#BA552D #BA9B2D #92BA2D
triadic
#BA9B2D #2DBA9B #9B2DBA
tetradic
#BA9B2D #2DBA55 #2D4CBA #BA2D92
square
#BA9B2D #2DBA55 #2D4CBA #BA2D92
split-complementary
#BA9B2D #2D92BA #552DBA
monochromatic
#574915 #897221 #BA9B2D #D5B750 #E0CB81

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9B2D#FFFFFF#000000##000000
##BA9B2D1.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)
#AC9919
Deuteranopia (green-blind)
#B4A233
Tritanopia (blue-blind)
#C98E86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b2d;
/* rgb */ color: rgb(186, 155, 45);
/* oklch */ color: oklch(69.9% 0.128 92.5);
Tailwind
colors: {
  custom: {
    50: '#d3b86e',
    500: '#ba9b2d',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b2d;
$custom-light: #d3b86e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b2d",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 45
  },
  "hsl": {
    "h": 46.809,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69862,
    "c": 0.128,
    "h": 92.5
  },
  "luminance": 0.34071
}

Semantic roles & 50–950 ramp

primary
#BA9B2D
secondary
#798BC9
accent
#67E444
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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