#BAA842#BAA842

#BAA842 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.123 H 99.3°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#BAA842
RGBrgb(186, 168, 66)
HSLhsl(51, 48%, 49%)
HSVhsv(51, 65%, 73%)
CMYKcmyk(0%, 9.7%, 64.5%, 27.1%)
CIE-LABlab(68.63, -5.61, 53.36)
CIE-LCHlch(68.63, 53.65, 96.01°)
OKLaboklab(72.77% -0.0198 0.1213)
OKLCHoklch(72.77% 0.123 99.3)
XYZxyz(35.2372, 38.8393, 10.7938)
Luminance0.3884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA842 #4254BA
analogous
#BA6C42 #BAA842 #90BA42
triadic
#BAA842 #42BAA8 #A842BA
tetradic
#BAA842 #42BA6C #4254BA #BA4290
square
#BAA842 #42BA6C #4254BA #BA4290
split-complementary
#BAA842 #4290BA #6C42BA
monochromatic
#605622 #8D7F32 #BAA842 #CBBD6E #DBD29B

Accessibility & contrast

On white

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

On black

8.77
#BAA842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA842
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA842#FFFFFF#000000##000000
##BAA8421.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A436
Deuteranopia (green-blind)
#BCAA47
Tritanopia (blue-blind)
#C89C92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #baa842;
/* rgb */ color: rgb(186, 168, 66);
/* oklch */ color: oklch(72.8% 0.123 99.3);
Tailwind
colors: {
  custom: {
    50: '#d2c17b',
    500: '#baa842',
    950: '#000000',
  },
}
SCSS
$custom: #baa842;
$custom-light: #d2c17b;
$custom-dark: #000000;
JSON
{
  "hex": "#baa842",
  "rgb": {
    "r": 186,
    "g": 168,
    "b": 66
  },
  "hsl": {
    "h": 51,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.7277,
    "c": 0.12287,
    "h": 99.3
  },
  "luminance": 0.38838
}

Semantic roles & 50–950 ramp

primary
#BAA842
secondary
#9099C8
accent
#65D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #BAA842

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

Preview Lab → · Contrast checker → · Palette generator →

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