#BAAF31#BAAF31

#BAAF31 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.1% C 0.141 H 104.2°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#BAAF31
RGBrgb(186, 175, 49)
HSLhsl(55, 58%, 46%)
HSVhsv(55, 74%, 73%)
CMYKcmyk(0%, 5.9%, 73.7%, 27.1%)
CIE-LABlab(70.40, -10.20, 61.92)
CIE-LCHlch(70.40, 62.75, 99.36°)
OKLaboklab(74.13% -0.0346 0.1364)
OKLCHoklch(74.13% 0.141 104.2)
XYZxyz(36.1356, 41.3223, 8.9777)
Luminance0.4132 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAF31 #313CBA
analogous
#BA6A31 #BAAF31 #80BA31
triadic
#BAAF31 #31BAAF #AF31BA
tetradic
#BAAF31 #31BA6A #313CBA #BA3180
square
#BAAF31 #31BA6A #313CBA #BA3180
split-complementary
#BAAF31 #3180BA #6A31BA
monochromatic
#595417 #8A8124 #BAAF31 #D2C856 #DFD886

Accessibility & contrast

On white

2.27
#BAAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#BAAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAF31
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAF31#FFFFFF#000000##000000
##BAAF311.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C2AF3A
Tritanopia (blue-blind)
#C8A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #baaf31;
/* rgb */ color: rgb(186, 175, 49);
/* oklch */ color: oklch(74.1% 0.141 104.2);
Tailwind
colors: {
  custom: {
    50: '#d2c672',
    500: '#baaf31',
    950: '#000000',
  },
}
SCSS
$custom: #baaf31;
$custom-light: #d2c672;
$custom-dark: #000000;
JSON
{
  "hex": "#baaf31",
  "rgb": {
    "r": 186,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 55.182,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74135,
    "c": 0.14077,
    "h": 104.2
  },
  "luminance": 0.41321
}

Semantic roles & 50–950 ramp

primary
#BAAF31
secondary
#7E84C9
accent
#53E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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