#BA9C28#BA9C28

#BA9C28 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.0% C 0.131 H 93.5°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA9C28
RGBrgb(186, 156, 40)
HSLhsl(48, 65%, 44%)
HSVhsv(48, 78%, 73%)
CMYKcmyk(0%, 16.1%, 78.5%, 27.1%)
CIE-LABlab(65.26, -0.52, 60.25)
CIE-LCHlch(65.26, 60.25, 90.50°)
OKLaboklab(70.04% -0.0081 0.1311)
OKLCHoklch(70.04% 0.131 93.5)
XYZxyz(32.5230, 34.3712, 6.9283)
Luminance0.3437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C28 #2846BA
analogous
#BA5328 #BA9C28 #8FBA28
triadic
#BA9C28 #28BA9C #9C28BA
tetradic
#BA9C28 #28BA53 #2846BA #BA288F
square
#BA9C28 #28BA53 #2846BA #BA288F
split-complementary
#BA9C28 #288FBA #5328BA
monochromatic
#554812 #88721D #BA9C28 #D8BA48 #E2CD7A

Accessibility & contrast

On white

2.67
#BA9C28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#BA9C28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C28
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C28#FFFFFF#000000##000000
##BA9C281.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD990E
Deuteranopia (green-blind)
#B5A230
Tritanopia (blue-blind)
#C98F86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9c28;
/* rgb */ color: rgb(186, 156, 40);
/* oklch */ color: oklch(70.0% 0.131 93.5);
Tailwind
colors: {
  custom: {
    50: '#d3b86c',
    500: '#ba9c28',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c28;
$custom-light: #d3b86c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c28",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 40
  },
  "hsl": {
    "h": 47.671,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.70039,
    "c": 0.13136,
    "h": 93.5
  },
  "luminance": 0.34369
}

Semantic roles & 50–950 ramp

primary
#BA9C28
secondary
#7385CA
accent
#63E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9C28

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

Preview Lab → · Contrast checker → · Palette generator →

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