#BAA242#BAA242

#BAA242 is a light, moderate yellow. Relative luminance 0.367; OKLCH L 71.5% C 0.118 H 95.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#BAA242
RGBrgb(186, 162, 66)
HSLhsl(48, 48%, 49%)
HSVhsv(48, 65%, 73%)
CMYKcmyk(0%, 12.9%, 64.5%, 27.1%)
CIE-LABlab(67.03, -2.42, 51.64)
CIE-LCHlch(67.03, 51.70, 92.69°)
OKLaboklab(71.5% -0.0106 0.1176)
OKLCHoklch(71.5% 0.118 95.2)
XYZxyz(34.1550, 36.6748, 10.4331)
Luminance0.3667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA242 #425ABA
analogous
#BA6642 #BAA242 #96BA42
triadic
#BAA242 #42BAA2 #A242BA
tetradic
#BAA242 #42BA66 #425ABA #BA4296
square
#BAA242 #42BA66 #425ABA #BA4296
split-complementary
#BAA242 #4296BA #6642BA
monochromatic
#605322 #8D7B32 #BAA242 #CBB96E #DBCF9B

Accessibility & contrast

On white

2.52
#BAA242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#BAA242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA242
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA242#FFFFFF#000000##000000
##BAA2421.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F37
Deuteranopia (green-blind)
#B8A647
Tritanopia (blue-blind)
#C8968E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #baa242;
/* rgb */ color: rgb(186, 162, 66);
/* oklch */ color: oklch(71.5% 0.118 95.2);
Tailwind
colors: {
  custom: {
    50: '#d2bd7b',
    500: '#baa242',
    950: '#000000',
  },
}
SCSS
$custom: #baa242;
$custom-light: #d2bd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#baa242",
  "rgb": {
    "r": 186,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 48,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.71502,
    "c": 0.1181,
    "h": 95.2
  },
  "luminance": 0.36673
}

Semantic roles & 50–950 ramp

primary
#BAA242
secondary
#909BC8
accent
#6CD751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #BAA242

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

Preview Lab → · Contrast checker → · Palette generator →

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