#BA9728#BA9728

#BA9728 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 69.0% C 0.129 H 90.2°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#BA9728
RGBrgb(186, 151, 40)
HSLhsl(46, 65%, 44%)
HSVhsv(46, 78%, 73%)
CMYKcmyk(0%, 18.8%, 78.5%, 27.1%)
CIE-LABlab(63.94, 2.18, 59.05)
CIE-LCHlch(63.94, 59.09, 87.88°)
OKLaboklab(69% -0.0004 0.1285)
OKLCHoklch(69% 0.129 90.2)
XYZxyz(31.7012, 32.7276, 6.6544)
Luminance0.3273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9728 #284BBA
analogous
#BA4E28 #BA9728 #94BA28
triadic
#BA9728 #28BA97 #9728BA
tetradic
#BA9728 #28BA4E #284BBA #BA2894
square
#BA9728 #28BA4E #284BBA #BA2894
split-complementary
#BA9728 #2894BA #4E28BA
monochromatic
#554512 #886E1D #BA9728 #D8B548 #E2C97A

Accessibility & contrast

On white

2.78
#BA9728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#BA9728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9728
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9728#FFFFFF#000000##000000
##BA97281.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99511
Deuteranopia (green-blind)
#B19F2F
Tritanopia (blue-blind)
#CA8A82
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba9728;
/* rgb */ color: rgb(186, 151, 40);
/* oklch */ color: oklch(69.0% 0.129 90.2);
Tailwind
colors: {
  custom: {
    50: '#d3b56b',
    500: '#ba9728',
    950: '#000000',
  },
}
SCSS
$custom: #ba9728;
$custom-light: #d3b56b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9728",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 45.616,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.69,
    "c": 0.12853,
    "h": 90.2
  },
  "luminance": 0.32726
}

Semantic roles & 50–950 ramp

primary
#BA9728
secondary
#7388CA
accent
#68E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9728

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

Preview Lab → · Contrast checker → · Palette generator →

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