#BBAF31#BBAF31

#BBAF31 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.2% C 0.141 H 103.8°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#BBAF31
RGBrgb(187, 175, 49)
HSLhsl(55, 58%, 46%)
HSVhsv(55, 74%, 73%)
CMYKcmyk(0%, 6.4%, 73.8%, 26.7%)
CIE-LABlab(70.49, -9.77, 62.03)
CIE-LCHlch(70.49, 62.80, 98.95°)
OKLaboklab(74.22% -0.0335 0.1366)
OKLCHoklch(74.22% 0.141 103.8)
XYZxyz(36.3795, 41.4480, 8.9891)
Luminance0.4145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBAF31 #313DBB
analogous
#BB6A31 #BBAF31 #82BB31
triadic
#BBAF31 #31BBAF #AF31BB
tetradic
#BBAF31 #31BB6A #313DBB #BB3182
square
#BBAF31 #31BB6A #313DBB #BB3182
split-complementary
#BBAF31 #3182BB #6A31BB
monochromatic
#5A5418 #8B8224 #BBAF31 #D3C856 #E0D887

Accessibility & contrast

On white

2.26
#BBAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#BBAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBAF31
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBAF31#FFFFFF#000000##000000
##BBAF311.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bbaf31;
/* rgb */ color: rgb(187, 175, 49);
/* oklch */ color: oklch(74.2% 0.141 103.8);
Tailwind
colors: {
  custom: {
    50: '#d3c672',
    500: '#bbaf31',
    950: '#000000',
  },
}
SCSS
$custom: #bbaf31;
$custom-light: #d3c672;
$custom-dark: #000000;
JSON
{
  "hex": "#bbaf31",
  "rgb": {
    "r": 187,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 54.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74225,
    "c": 0.14068,
    "h": 103.8
  },
  "luminance": 0.41446
}

Semantic roles & 50–950 ramp

primary
#BBAF31
secondary
#7F85C9
accent
#54E246
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BBAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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