#BA9F2E#BA9F2E

#BA9F2E is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.7% C 0.130 H 95.0°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#BA9F2E
RGBrgb(186, 159, 46)
HSLhsl(48, 60%, 45%)
HSVhsv(48, 75%, 73%)
CMYKcmyk(0%, 14.5%, 75.3%, 27.1%)
CIE-LABlab(66.09, -1.89, 58.90)
CIE-LCHlch(66.09, 58.93, 91.84°)
OKLaboklab(70.71% -0.0114 0.1295)
OKLCHoklch(70.71% 0.13 95)
XYZxyz(33.1427, 35.4345, 7.6781)
Luminance0.3543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F2E #2E49BA
analogous
#BA592E #BA9F2E #8FBA2E
triadic
#BA9F2E #2EBA9F #9F2EBA
tetradic
#BA9F2E #2EBA59 #2E49BA #BA2E8F
square
#BA9F2E #2EBA59 #2E49BA #BA2E8F
split-complementary
#BA9F2E #2E8FBA #592EBA
monochromatic
#584B16 #897522 #BA9F2E #D4BB51 #E0CE82

Accessibility & contrast

On white

2.60
#BA9F2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#BA9F2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F2E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F2E#FFFFFF#000000##000000
##BA9F2E1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1A
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f2e;
/* rgb */ color: rgb(186, 159, 46);
/* oklch */ color: oklch(70.7% 0.130 95.0);
Tailwind
colors: {
  custom: {
    50: '#d3bb6f',
    500: '#ba9f2e',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f2e;
$custom-light: #d3bb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f2e",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 46
  },
  "hsl": {
    "h": 48.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70705,
    "c": 0.12995,
    "h": 95
  },
  "luminance": 0.35433
}

Semantic roles & 50–950 ramp

primary
#BA9F2E
secondary
#7B8AC9
accent
#63E344
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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