#B8BC31#B8BC31

#B8BC31 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 76.8% C 0.154 H 111.2°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#B8BC31
RGBrgb(184, 188, 49)
HSLhsl(62, 59%, 46%)
HSVhsv(62, 74%, 74%)
CMYKcmyk(2.1%, 0%, 73.9%, 26.3%)
CIE-LABlab(73.79, -17.70, 65.06)
CIE-LCHlch(73.79, 67.43, 105.22°)
OKLaboklab(76.8% -0.0555 0.1432)
OKLCHoklch(76.8% 0.154 111.2)
XYZxyz(38.3061, 46.3796, 9.8394)
Luminance0.4638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8BC31 #3531BC
analogous
#BC7B31 #B8BC31 #73BC31
triadic
#B8BC31 #31B8BC #BC31B8
tetradic
#B8BC31 #31BC7B #3531BC #BC3173
square
#B8BC31 #31BC7B #3531BC #BC3173
split-complementary
#B8BC31 #3173BC #7B31BC
monochromatic
#595B18 #888B24 #B8BC31 #D0D357 #DDE088

Accessibility & contrast

On white

2.04
#B8BC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#B8BC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8BC31
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8BC31#FFFFFF#000000##000000
##B8BC311.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB312
Deuteranopia (green-blind)
#CCB73C
Tritanopia (blue-blind)
#C5B0A2
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #b8bc31;
/* rgb */ color: rgb(184, 188, 49);
/* oklch */ color: oklch(76.8% 0.154 111.2);
Tailwind
colors: {
  custom: {
    50: '#d1cf74',
    500: '#b8bc31',
    950: '#000000',
  },
}
SCSS
$custom: #b8bc31;
$custom-light: #d1cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#b8bc31",
  "rgb": {
    "r": 184,
    "g": 188,
    "b": 49
  },
  "hsl": {
    "h": 61.727,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.76799,
    "c": 0.15357,
    "h": 111.2
  },
  "luminance": 0.46379
}

Semantic roles & 50–950 ramp

primary
#B8BC31
secondary
#817FCA
accent
#46E24A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8BC31

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

Preview Lab → · Contrast checker → · Palette generator →

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