#BA9C38#BA9C38

#BA9C38 is a light, vivid yellow. Relative luminance 0.345; OKLCH L 70.2% C 0.122 H 92.0°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#BA9C38
RGBrgb(186, 156, 56)
HSLhsl(46, 54%, 47%)
HSVhsv(46, 70%, 73%)
CMYKcmyk(0%, 16.1%, 69.9%, 27.1%)
CIE-LABlab(65.36, 0.21, 54.23)
CIE-LCHlch(65.36, 54.23, 89.78°)
OKLaboklab(70.15% -0.0043 0.1215)
OKLCHoklch(70.15% 0.122 92)
XYZxyz(32.8537, 34.5035, 8.6700)
Luminance0.3450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C38 #3856BA
analogous
#BA5B38 #BA9C38 #97BA38
triadic
#BA9C38 #38BA9C #9C38BA
tetradic
#BA9C38 #38BA5B #3856BA #BA3897
square
#BA9C38 #38BA5B #3856BA #BA3897
split-complementary
#BA9C38 #3897BA #5B38BA
monochromatic
#5C4D1C #8B752A #BA9C38 #CFB660 #DDCB8F

Accessibility & contrast

On white

2.66
#BA9C38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#BA9C38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C38
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C38#FFFFFF#000000##000000
##BA9C381.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A2B
Deuteranopia (green-blind)
#B4A23D
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9c38;
/* rgb */ color: rgb(186, 156, 56);
/* oklch */ color: oklch(70.2% 0.122 92.0);
Tailwind
colors: {
  custom: {
    50: '#d2b874',
    500: '#ba9c38',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c38;
$custom-light: #d2b874;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c38",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 56
  },
  "hsl": {
    "h": 46.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70154,
    "c": 0.12154,
    "h": 92
  },
  "luminance": 0.34502
}

Semantic roles & 50–950 ramp

primary
#BA9C38
secondary
#8695C8
accent
#6CDD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9C38

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

Preview Lab → · Contrast checker → · Palette generator →

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