#BA9628#BA9628

#BA9628 is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.8% C 0.128 H 89.5°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#BA9628
RGBrgb(186, 150, 40)
HSLhsl(45, 65%, 44%)
HSVhsv(45, 78%, 73%)
CMYKcmyk(0%, 19.4%, 78.5%, 27.1%)
CIE-LABlab(63.68, 2.73, 58.81)
CIE-LCHlch(63.68, 58.87, 87.35°)
OKLaboklab(68.79% 0.0011 0.128)
OKLCHoklch(68.79% 0.128 89.5)
XYZxyz(31.5410, 32.4071, 6.6010)
Luminance0.3241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9628 #284CBA
analogous
#BA4D28 #BA9628 #95BA28
triadic
#BA9628 #28BA96 #9628BA
tetradic
#BA9628 #28BA4D #284CBA #BA2895
square
#BA9628 #28BA4D #284CBA #BA2895
split-complementary
#BA9628 #2895BA #4D28BA
monochromatic
#554512 #886D1D #BA9628 #D8B448 #E2C97A

Accessibility & contrast

On white

2.81
#BA9628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#BA9628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9628
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9628#FFFFFF#000000##000000
##BA96281.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89411
Deuteranopia (green-blind)
#B19E2E
Tritanopia (blue-blind)
#CA8981
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba9628;
/* rgb */ color: rgb(186, 150, 40);
/* oklch */ color: oklch(68.8% 0.128 89.5);
Tailwind
colors: {
  custom: {
    50: '#d3b46b',
    500: '#ba9628',
    950: '#000000',
  },
}
SCSS
$custom: #ba9628;
$custom-light: #d3b46b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9628",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 40
  },
  "hsl": {
    "h": 45.205,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.68793,
    "c": 0.12802,
    "h": 89.5
  },
  "luminance": 0.32405
}

Semantic roles & 50–950 ramp

primary
#BA9628
secondary
#7389CA
accent
#69E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9628

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

Preview Lab → · Contrast checker → · Palette generator →

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