#BAA538#BAA538

#BAA538 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 72.0% C 0.128 H 98.1°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#BAA538
RGBrgb(186, 165, 56)
HSLhsl(50, 54%, 47%)
HSVhsv(50, 70%, 73%)
CMYKcmyk(0%, 11.3%, 69.9%, 27.1%)
CIE-LABlab(67.75, -4.61, 56.66)
CIE-LCHlch(67.75, 56.85, 94.65°)
OKLaboklab(72.05% -0.018 0.1266)
OKLCHoklch(72.05% 0.128 98.1)
XYZxyz(34.4203, 37.6366, 9.1922)
Luminance0.3764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA538 #384DBA
analogous
#BA6438 #BAA538 #8EBA38
triadic
#BAA538 #38BAA5 #A538BA
tetradic
#BAA538 #38BA64 #384DBA #BA388E
square
#BAA538 #38BA64 #384DBA #BA388E
split-complementary
#BAA538 #388EBA #6438BA
monochromatic
#5C521C #8B7B2A #BAA538 #CFBD60 #DDD18F

Accessibility & contrast

On white

2.46
#BAA538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#BAA538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA538
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA538#FFFFFF#000000##000000
##BAA5381.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A128
Deuteranopia (green-blind)
#BBA83E
Tritanopia (blue-blind)
#C8998F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #baa538;
/* rgb */ color: rgb(186, 165, 56);
/* oklch */ color: oklch(72.0% 0.128 98.1);
Tailwind
colors: {
  custom: {
    50: '#d2bf75',
    500: '#baa538',
    950: '#000000',
  },
}
SCSS
$custom: #baa538;
$custom-light: #d2bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#baa538",
  "rgb": {
    "r": 186,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 50.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72046,
    "c": 0.12788,
    "h": 98.1
  },
  "luminance": 0.37635
}

Semantic roles & 50–950 ramp

primary
#BAA538
secondary
#8690C8
accent
#62DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #BAA538

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

Preview Lab → · Contrast checker → · Palette generator →

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