#BA9933#BA9933

#BA9933 is a light, vivid yellow. Relative luminance 0.335; OKLCH L 69.5% C 0.123 H 90.4°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#BA9933
RGBrgb(186, 153, 51)
HSLhsl(45, 57%, 46%)
HSVhsv(45, 73%, 73%)
CMYKcmyk(0%, 17.7%, 72.6%, 27.1%)
CIE-LABlab(64.53, 1.58, 55.46)
CIE-LCHlch(64.53, 55.48, 88.37°)
OKLaboklab(69.49% -0.0009 0.1231)
OKLCHoklch(69.49% 0.123 90.4)
XYZxyz(32.2403, 33.4626, 7.8921)
Luminance0.3346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9933 #3354BA
analogous
#BA5633 #BA9933 #98BA33
triadic
#BA9933 #33BA99 #9933BA
tetradic
#BA9933 #33BA56 #3354BA #BA3398
square
#BA9933 #33BA56 #3354BA #BA3398
split-complementary
#BA9933 #3398BA #5633BA
monochromatic
#5A4A19 #8A7126 #BA9933 #D1B459 #DFCA89

Accessibility & contrast

On white

2.73
#BA9933 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#BA9933 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9933
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9933#FFFFFF#000000##000000
##BA99331.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9724
Deuteranopia (green-blind)
#B2A038
Tritanopia (blue-blind)
#C98C84
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9933;
/* rgb */ color: rgb(186, 153, 51);
/* oklch */ color: oklch(69.5% 0.123 90.4);
Tailwind
colors: {
  custom: {
    50: '#d3b671',
    500: '#ba9933',
    950: '#000000',
  },
}
SCSS
$custom: #ba9933;
$custom-light: #d3b671;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9933",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 51
  },
  "hsl": {
    "h": 45.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.6949,
    "c": 0.12314,
    "h": 90.4
  },
  "luminance": 0.33461
}

Semantic roles & 50–950 ramp

primary
#BA9933
secondary
#8092C9
accent
#6DE048
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9933

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

Preview Lab → · Contrast checker → · Palette generator →

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