#BAA838#BAA838

#BAA838 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.7% C 0.130 H 100.0°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#BAA838
RGBrgb(186, 168, 56)
HSLhsl(52, 54%, 47%)
HSVhsv(52, 70%, 73%)
CMYKcmyk(0%, 9.7%, 69.9%, 27.1%)
CIE-LABlab(68.56, -6.19, 57.47)
CIE-LCHlch(68.56, 57.81, 96.15°)
OKLaboklab(72.68% -0.0226 0.1283)
OKLCHoklch(72.68% 0.13 100)
XYZxyz(34.9677, 38.7315, 9.3747)
Luminance0.3873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA838 #384ABA
analogous
#BA6738 #BAA838 #8BBA38
triadic
#BAA838 #38BAA8 #A838BA
tetradic
#BAA838 #38BA67 #384ABA #BA388B
square
#BAA838 #38BA67 #384ABA #BA388B
split-complementary
#BAA838 #388BBA #6738BA
monochromatic
#5C531C #8B7E2A #BAA838 #CFC060 #DDD28F

Accessibility & contrast

On white

2.40
#BAA838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#BAA838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA838
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA838#FFFFFF#000000##000000
##BAA8381.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A328
Deuteranopia (green-blind)
#BDAA3F
Tritanopia (blue-blind)
#C89C91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #baa838;
/* rgb */ color: rgb(186, 168, 56);
/* oklch */ color: oklch(72.7% 0.130 100.0);
Tailwind
colors: {
  custom: {
    50: '#d2c175',
    500: '#baa838',
    950: '#000000',
  },
}
SCSS
$custom: #baa838;
$custom-light: #d2c175;
$custom-dark: #000000;
JSON
{
  "hex": "#baa838",
  "rgb": {
    "r": 186,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 51.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72683,
    "c": 0.13028,
    "h": 100
  },
  "luminance": 0.3873
}

Semantic roles & 50–950 ramp

primary
#BAA838
secondary
#868FC8
accent
#5FDD4B
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #BAA838

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

Preview Lab → · Contrast checker → · Palette generator →

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