#BAA338#BAA338

#BAA338 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.126 H 96.8°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#BAA338
RGBrgb(186, 163, 56)
HSLhsl(49, 54%, 47%)
HSVhsv(49, 70%, 73%)
CMYKcmyk(0%, 12.4%, 69.9%, 27.1%)
CIE-LABlab(67.22, -3.54, 56.12)
CIE-LCHlch(67.22, 56.23, 93.61°)
OKLaboklab(71.62% -0.015 0.1255)
OKLCHoklch(71.62% 0.126 96.8)
XYZxyz(34.0623, 36.9207, 9.0729)
Luminance0.3692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA338 #384FBA
analogous
#BA6238 #BAA338 #90BA38
triadic
#BAA338 #38BAA3 #A338BA
tetradic
#BAA338 #38BA62 #384FBA #BA3890
square
#BAA338 #38BA62 #384FBA #BA3890
split-complementary
#BAA338 #3890BA #6238BA
monochromatic
#5C511C #8B7A2A #BAA338 #CFBB60 #DDCF8F

Accessibility & contrast

On white

2.50
#BAA338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#BAA338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA338
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA338#FFFFFF#000000##000000
##BAA3381.002.508.388.38
#FFFFFF2.501.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F29
Deuteranopia (green-blind)
#B9A73E
Tritanopia (blue-blind)
#C9978D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #baa338;
/* rgb */ color: rgb(186, 163, 56);
/* oklch */ color: oklch(71.6% 0.126 96.8);
Tailwind
colors: {
  custom: {
    50: '#d2bd75',
    500: '#baa338',
    950: '#000000',
  },
}
SCSS
$custom: #baa338;
$custom-light: #d2bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#baa338",
  "rgb": {
    "r": 186,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 49.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71622,
    "c": 0.12636,
    "h": 96.8
  },
  "luminance": 0.36919
}

Semantic roles & 50–950 ramp

primary
#BAA338
secondary
#8691C8
accent
#65DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #BAA338

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

Preview Lab → · Contrast checker → · Palette generator →

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