#B7BA31#B7BA31

#B7BA31 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.152 H 110.8°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#B7BA31
RGBrgb(183, 186, 49)
HSLhsl(61, 58%, 46%)
HSVhsv(61, 74%, 73%)
CMYKcmyk(1.6%, 0%, 73.7%, 27.1%)
CIE-LABlab(73.16, -17.12, 64.44)
CIE-LCHlch(73.16, 66.68, 104.88°)
OKLaboklab(76.27% -0.0539 0.1419)
OKLCHoklch(76.27% 0.152 110.8)
XYZxyz(37.6430, 45.4079, 9.6868)
Luminance0.4541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7BA31 #3431BA
analogous
#BA7831 #B7BA31 #72BA31
triadic
#B7BA31 #31B7BA #BA31B7
tetradic
#B7BA31 #31BA78 #3431BA #BA3172
square
#B7BA31 #31BA78 #3431BA #BA3172
split-complementary
#B7BA31 #3172BA #7831BA
monochromatic
#585917 #878A24 #B7BA31 #D0D256 #DDDF86

Accessibility & contrast

On white

2.08
#B7BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.08
#B7BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7BA31
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7BA31#FFFFFF#000000##000000
##B7BA311.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B214
Deuteranopia (green-blind)
#CAB53C
Tritanopia (blue-blind)
#C4AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #b7ba31;
/* rgb */ color: rgb(183, 186, 49);
/* oklch */ color: oklch(76.3% 0.152 110.8);
Tailwind
colors: {
  custom: {
    50: '#d0ce73',
    500: '#b7ba31',
    950: '#000000',
  },
}
SCSS
$custom: #b7ba31;
$custom-light: #d0ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ba31",
  "rgb": {
    "r": 183,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 61.314,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76274,
    "c": 0.15177,
    "h": 110.8
  },
  "luminance": 0.45407
}

Semantic roles & 50–950 ramp

primary
#B7BA31
secondary
#807EC9
accent
#46E24A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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