#BA9D28#BA9D28

#BA9D28 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.2% C 0.132 H 94.2°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#BA9D28
RGBrgb(186, 157, 40)
HSLhsl(48, 65%, 44%)
HSVhsv(48, 78%, 73%)
CMYKcmyk(0%, 15.6%, 78.5%, 27.1%)
CIE-LABlab(65.52, -1.06, 60.49)
CIE-LCHlch(65.52, 60.50, 91.00°)
OKLaboklab(70.25% -0.0096 0.1316)
OKLCHoklch(70.25% 0.132 94.2)
XYZxyz(32.6915, 34.7082, 6.9845)
Luminance0.3471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D28 #2845BA
analogous
#BA5428 #BA9D28 #8EBA28
triadic
#BA9D28 #28BA9D #9D28BA
tetradic
#BA9D28 #28BA54 #2845BA #BA288E
square
#BA9D28 #28BA54 #2845BA #BA288E
split-complementary
#BA9D28 #288EBA #5428BA
monochromatic
#554812 #88721D #BA9D28 #D8BB48 #E2CE7A

Accessibility & contrast

On white

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

On black

7.94
#BA9D28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D28
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D28#FFFFFF#000000##000000
##BA9D281.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba9d28;
/* rgb */ color: rgb(186, 157, 40);
/* oklch */ color: oklch(70.2% 0.132 94.2);
Tailwind
colors: {
  custom: {
    50: '#d3b96c',
    500: '#ba9d28',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d28;
$custom-light: #d3b96c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d28",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 40
  },
  "hsl": {
    "h": 48.082,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.70248,
    "c": 0.13198,
    "h": 94.2
  },
  "luminance": 0.34706
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9D28

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

Preview Lab → · Contrast checker → · Palette generator →

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