#BAAB2F#BAAB2F

#BAAB2F is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.3% C 0.138 H 102.2°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#BAAB2F
RGBrgb(186, 171, 47)
HSLhsl(54, 60%, 46%)
HSVhsv(54, 75%, 73%)
CMYKcmyk(0%, 8.1%, 74.7%, 27.1%)
CIE-LABlab(69.31, -8.21, 61.59)
CIE-LCHlch(69.31, 62.13, 97.59°)
OKLaboklab(73.26% -0.0292 0.1354)
OKLCHoklch(73.26% 0.138 102.2)
XYZxyz(35.3273, 39.7717, 8.5047)
Luminance0.3977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAB2F #2F3EBA
analogous
#BA652F #BAAB2F #83BA2F
triadic
#BAAB2F #2FBAAB #AB2FBA
tetradic
#BAAB2F #2FBA65 #2F3EBA #BA2F83
square
#BAAB2F #2FBA65 #2F3EBA #BA2F83
split-complementary
#BAAB2F #2F83BA #652FBA
monochromatic
#585116 #897E23 #BAAB2F #D3C653 #E0D684

Accessibility & contrast

On white

2.35
#BAAB2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#BAAB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAB2F
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAB2F#FFFFFF#000000##000000
##BAAB2F1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA617
Deuteranopia (green-blind)
#C0AC38
Tritanopia (blue-blind)
#C89F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #baab2f;
/* rgb */ color: rgb(186, 171, 47);
/* oklch */ color: oklch(73.3% 0.138 102.2);
Tailwind
colors: {
  custom: {
    50: '#d3c371',
    500: '#baab2f',
    950: '#000000',
  },
}
SCSS
$custom: #baab2f;
$custom-light: #d3c371;
$custom-dark: #000000;
JSON
{
  "hex": "#baab2f",
  "rgb": {
    "r": 186,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 53.525,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73261,
    "c": 0.13847,
    "h": 102.2
  },
  "luminance": 0.3977
}

Semantic roles & 50–950 ramp

primary
#BAAB2F
secondary
#7C84C9
accent
#56E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAAB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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