#BAA840#BAA840

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

Color values

HEX#BAA840
RGBrgb(186, 168, 64)
HSLhsl(51, 49%, 49%)
HSVhsv(51, 66%, 73%)
CMYKcmyk(0%, 9.7%, 65.6%, 27.1%)
CIE-LABlab(68.62, -5.74, 54.21)
CIE-LCHlch(68.62, 54.51, 96.04°)
OKLaboklab(72.75% -0.0204 0.1228)
OKLCHoklch(72.75% 0.124 99.4)
XYZxyz(35.1793, 38.8161, 10.4887)
Luminance0.3881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA840 #4052BA
analogous
#BA6B40 #BAA840 #8FBA40
triadic
#BAA840 #40BAA8 #A840BA
tetradic
#BAA840 #40BA6B #4052BA #BA408F
square
#BAA840 #40BA6B #4052BA #BA408F
split-complementary
#BAA840 #408FBA #6B40BA
monochromatic
#5F5621 #8C7F30 #BAA840 #CCBE6B #DCD299

Accessibility & contrast

On white

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

On black

8.76
#BAA840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA840
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA840#FFFFFF#000000##000000
##BAA8401.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baa840;
/* rgb */ color: rgb(186, 168, 64);
/* oklch */ color: oklch(72.8% 0.124 99.4);
Tailwind
colors: {
  custom: {
    50: '#d2c17a',
    500: '#baa840',
    950: '#000000',
  },
}
SCSS
$custom: #baa840;
$custom-light: #d2c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#baa840",
  "rgb": {
    "r": 186,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 51.148,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72752,
    "c": 0.12444,
    "h": 99.4
  },
  "luminance": 0.38815
}

Semantic roles & 50–950 ramp

primary
#BAA840
secondary
#8E97C8
accent
#64D84F
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #BAA840

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

Preview Lab → · Contrast checker → · Palette generator →

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