#B7BF31#B7BF31

#B7BF31 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.4% C 0.157 H 112.8°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#B7BF31
RGBrgb(183, 191, 49)
HSLhsl(63, 59%, 47%)
HSVhsv(63, 74%, 75%)
CMYKcmyk(4.2%, 0%, 74.3%, 25.1%)
CIE-LABlab(74.54, -19.63, 65.74)
CIE-LCHlch(74.54, 68.60, 106.62°)
OKLaboklab(77.38% -0.0608 0.1446)
OKLCHoklch(77.38% 0.157 112.8)
XYZxyz(38.7149, 47.5515, 10.0441)
Luminance0.4755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7BF31 #3931BF
analogous
#BF8031 #B7BF31 #70BF31
triadic
#B7BF31 #31B7BF #BF31B7
tetradic
#B7BF31 #31BF80 #3931BF #BF3170
square
#B7BF31 #31BF80 #3931BF #BF3170
split-complementary
#B7BF31 #3170BF #8031BF
monochromatic
#5A5E18 #888E25 #B7BF31 #CDD459 #DCE18A

Accessibility & contrast

On white

2.00
#B7BF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#B7BF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7BF31
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7BF31#FFFFFF#000000##000000
##B7BF311.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB611
Deuteranopia (green-blind)
#CEB93D
Tritanopia (blue-blind)
#C4B3A4
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b7bf31;
/* rgb */ color: rgb(183, 191, 49);
/* oklch */ color: oklch(77.4% 0.157 112.8);
Tailwind
colors: {
  custom: {
    50: '#d0d274',
    500: '#b7bf31',
    950: '#000000',
  },
}
SCSS
$custom: #b7bf31;
$custom-light: #d0d274;
$custom-dark: #000000;
JSON
{
  "hex": "#b7bf31",
  "rgb": {
    "r": 183,
    "g": 191,
    "b": 49
  },
  "hsl": {
    "h": 63.38,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.7738,
    "c": 0.15691,
    "h": 112.8
  },
  "luminance": 0.47551
}

Semantic roles & 50–950 ramp

primary
#B7BF31
secondary
#8581CB
accent
#45E24E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141409
muted
#83827B

Preview Lab

Preview with #B7BF31

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

Preview Lab → · Contrast checker → · Palette generator →

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