#BAA340#BAA340

#BAA340 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.7% C 0.120 H 96.1°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#BAA340
RGBrgb(186, 163, 64)
HSLhsl(49, 49%, 49%)
HSVhsv(49, 66%, 73%)
CMYKcmyk(0%, 12.4%, 65.6%, 27.1%)
CIE-LABlab(67.28, -3.08, 52.79)
CIE-LCHlch(67.28, 52.88, 93.34°)
OKLaboklab(71.69% -0.0128 0.1198)
OKLCHoklch(71.69% 0.12 96.1)
XYZxyz(34.2739, 37.0054, 10.1869)
Luminance0.3700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA340 #4057BA
analogous
#BA6640 #BAA340 #94BA40
triadic
#BAA340 #40BAA3 #A340BA
tetradic
#BAA340 #40BA66 #4057BA #BA4094
square
#BAA340 #40BA66 #4057BA #BA4094
split-complementary
#BAA340 #4094BA #6640BA
monochromatic
#5F5321 #8C7B30 #BAA340 #CCBA6B #DCCF99

Accessibility & contrast

On white

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

On black

8.40
#BAA340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA340
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA340#FFFFFF#000000##000000
##BAA3401.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A034
Deuteranopia (green-blind)
#B9A745
Tritanopia (blue-blind)
#C8978E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #baa340;
/* rgb */ color: rgb(186, 163, 64);
/* oklch */ color: oklch(71.7% 0.120 96.1);
Tailwind
colors: {
  custom: {
    50: '#d2bd79',
    500: '#baa340',
    950: '#000000',
  },
}
SCSS
$custom: #baa340;
$custom-light: #d2bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#baa340",
  "rgb": {
    "r": 186,
    "g": 163,
    "b": 64
  },
  "hsl": {
    "h": 48.689,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71693,
    "c": 0.12044,
    "h": 96.1
  },
  "luminance": 0.37004
}

Semantic roles & 50–950 ramp

primary
#BAA340
secondary
#8E99C8
accent
#69D84F
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #BAA340

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

Preview Lab → · Contrast checker → · Palette generator →

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