#B7BC31#B7BC31

#B7BC31 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 76.7% C 0.154 H 111.6°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#B7BC31
RGBrgb(183, 188, 49)
HSLhsl(62, 59%, 46%)
HSVhsv(62, 74%, 74%)
CMYKcmyk(2.7%, 0%, 73.9%, 26.3%)
CIE-LABlab(73.71, -18.13, 64.96)
CIE-LCHlch(73.71, 67.44, 105.59°)
OKLaboklab(76.72% -0.0567 0.143)
OKLCHoklch(76.72% 0.154 111.6)
XYZxyz(38.0673, 46.2564, 9.8282)
Luminance0.4626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7BC31 #3631BC
analogous
#BC7C31 #B7BC31 #72BC31
triadic
#B7BC31 #31B7BC #BC31B7
tetradic
#B7BC31 #31BC7C #3631BC #BC3172
square
#B7BC31 #31BC7C #3631BC #BC3172
split-complementary
#B7BC31 #3172BC #7C31BC
monochromatic
#585B18 #888B24 #B7BC31 #CFD357 #DDE088

Accessibility & contrast

On white

2.05
#B7BC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#B7BC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7BC31
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7BC31#FFFFFF#000000##000000
##B7BC311.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7bc31;
/* rgb */ color: rgb(183, 188, 49);
/* oklch */ color: oklch(76.7% 0.154 111.6);
Tailwind
colors: {
  custom: {
    50: '#d0cf74',
    500: '#b7bc31',
    950: '#000000',
  },
}
SCSS
$custom: #b7bc31;
$custom-light: #d0cf74;
$custom-dark: #000000;
JSON
{
  "hex": "#b7bc31",
  "rgb": {
    "r": 183,
    "g": 188,
    "b": 49
  },
  "hsl": {
    "h": 62.158,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.76716,
    "c": 0.15381,
    "h": 111.6
  },
  "luminance": 0.46255
}

Semantic roles & 50–950 ramp

primary
#B7BC31
secondary
#827FCA
accent
#46E24C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7BC31

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

Preview Lab → · Contrast checker → · Palette generator →

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