#BA9E38#BA9E38

#BA9E38 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.6% C 0.123 H 93.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#BA9E38
RGBrgb(186, 158, 56)
HSLhsl(47, 54%, 47%)
HSVhsv(47, 70%, 73%)
CMYKcmyk(0%, 15.1%, 69.9%, 27.1%)
CIE-LABlab(65.89, -0.87, 54.77)
CIE-LCHlch(65.89, 54.78, 90.91°)
OKLaboklab(70.57% -0.0074 0.1226)
OKLCHoklch(70.57% 0.123 93.4)
XYZxyz(33.1921, 35.1802, 8.7828)
Luminance0.3518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E38 #3854BA
analogous
#BA5D38 #BA9E38 #95BA38
triadic
#BA9E38 #38BA9E #9E38BA
tetradic
#BA9E38 #38BA5D #3854BA #BA3895
square
#BA9E38 #38BA5D #3854BA #BA3895
split-complementary
#BA9E38 #3895BA #5D38BA
monochromatic
#5C4E1C #8B762A #BA9E38 #CFB760 #DDCC8F

Accessibility & contrast

On white

2.61
#BA9E38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#BA9E38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E38
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E38#FFFFFF#000000##000000
##BA9E381.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B2A
Deuteranopia (green-blind)
#B6A43D
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e38;
/* rgb */ color: rgb(186, 158, 56);
/* oklch */ color: oklch(70.6% 0.123 93.4);
Tailwind
colors: {
  custom: {
    50: '#d2ba74',
    500: '#ba9e38',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e38;
$custom-light: #d2ba74;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e38",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 56
  },
  "hsl": {
    "h": 47.077,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70571,
    "c": 0.12282,
    "h": 93.4
  },
  "luminance": 0.35178
}

Semantic roles & 50–950 ramp

primary
#BA9E38
secondary
#8694C8
accent
#6ADD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9E38

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

Preview Lab → · Contrast checker → · Palette generator →

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