#B8B937#B8B937

#B8B937 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.2% C 0.147 H 109.9°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#B8B937
RGBrgb(184, 185, 55)
HSLhsl(60, 54%, 47%)
HSVhsv(60, 70%, 73%)
CMYKcmyk(0.5%, 0%, 70.3%, 27.5%)
CIE-LABlab(73.00, -15.91, 62.20)
CIE-LCHlch(73.00, 64.20, 104.34°)
OKLaboklab(76.18% -0.0499 0.1382)
OKLCHoklch(76.18% 0.147 109.9)
XYZxyz(37.8070, 45.1652, 10.3399)
Luminance0.4516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B937 #3837B9
analogous
#B97937 #B8B937 #77B937
triadic
#B8B937 #37B8B9 #B937B8
tetradic
#B8B937 #37B979 #3837B9 #B93777
square
#B8B937 #37B979 #3837B9 #B93777
split-complementary
#B8B937 #3777B9 #7937B9
monochromatic
#5A5B1B #898A29 #B8B937 #CECF5E #DDDD8D

Accessibility & contrast

On white

2.09
#B8B937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#B8B937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B937
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B937#FFFFFF#000000##000000
##B8B9371.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B121
Deuteranopia (green-blind)
#C9B541
Tritanopia (blue-blind)
#C5ADA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b8b937;
/* rgb */ color: rgb(184, 185, 55);
/* oklch */ color: oklch(76.2% 0.147 109.9);
Tailwind
colors: {
  custom: {
    50: '#d1cd76',
    500: '#b8b937',
    950: '#000000',
  },
}
SCSS
$custom: #b8b937;
$custom-light: #d1cd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b937",
  "rgb": {
    "r": 184,
    "g": 185,
    "b": 55
  },
  "hsl": {
    "h": 60.462,
    "s": 54.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.76178,
    "c": 0.14694,
    "h": 109.9
  },
  "luminance": 0.45164
}

Semantic roles & 50–950 ramp

primary
#B8B937
secondary
#8584C8
accent
#4ADE4B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B937

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

Preview Lab → · Contrast checker → · Palette generator →

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