#BA9F38#BA9F38

#BA9F38 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.8% C 0.123 H 94.1°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#BA9F38
RGBrgb(186, 159, 56)
HSLhsl(48, 54%, 47%)
HSVhsv(48, 70%, 73%)
CMYKcmyk(0%, 14.5%, 69.9%, 27.1%)
CIE-LABlab(66.15, -1.40, 55.04)
CIE-LCHlch(66.15, 55.06, 91.46°)
OKLaboklab(70.78% -0.0089 0.1232)
OKLCHoklch(70.78% 0.123 94.1)
XYZxyz(33.3633, 35.5227, 8.8399)
Luminance0.3552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F38 #3853BA
analogous
#BA5E38 #BA9F38 #94BA38
triadic
#BA9F38 #38BA9F #9F38BA
tetradic
#BA9F38 #38BA5E #3853BA #BA3894
square
#BA9F38 #38BA5E #3853BA #BA3894
split-complementary
#BA9F38 #3894BA #5E38BA
monochromatic
#5C4F1C #8B772A #BA9F38 #CFB860 #DDCD8F

Accessibility & contrast

On white

2.59
#BA9F38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#BA9F38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F38
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F38#FFFFFF#000000##000000
##BA9F381.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C2A
Deuteranopia (green-blind)
#B6A43D
Tritanopia (blue-blind)
#C9938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f38;
/* rgb */ color: rgb(186, 159, 56);
/* oklch */ color: oklch(70.8% 0.123 94.1);
Tailwind
colors: {
  custom: {
    50: '#d2bb74',
    500: '#ba9f38',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f38;
$custom-light: #d2bb74;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f38",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 56
  },
  "hsl": {
    "h": 47.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70781,
    "c": 0.12349,
    "h": 94.1
  },
  "luminance": 0.35521
}

Semantic roles & 50–950 ramp

primary
#BA9F38
secondary
#8694C8
accent
#69DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9F38

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

Preview Lab → · Contrast checker → · Palette generator →

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