#B8A837#B8A837

#B8A837 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.5% C 0.131 H 101.1°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#B8A837
RGBrgb(184, 168, 55)
HSLhsl(53, 54%, 47%)
HSVhsv(53, 70%, 72%)
CMYKcmyk(0%, 8.7%, 70.1%, 27.8%)
CIE-LABlab(68.37, -7.12, 57.62)
CIE-LCHlch(68.37, 58.06, 97.05°)
OKLaboklab(72.49% -0.0252 0.1285)
OKLCHoklch(72.49% 0.131 101.1)
XYZxyz(34.4609, 38.4730, 9.2245)
Luminance0.3847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A837 #3747B8
analogous
#B86837 #B8A837 #88B837
triadic
#B8A837 #37B8A8 #A837B8
tetradic
#B8A837 #37B868 #3747B8 #B83788
square
#B8A837 #37B868 #3747B8 #B83788
split-complementary
#B8A837 #3788B8 #6837B8
monochromatic
#5A521B #897D29 #B8A837 #CFC15D #DDD38D

Accessibility & contrast

On white

2.42
#B8A837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#B8A837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A837
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A837#FFFFFF#000000##000000
##B8A8371.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A326
Deuteranopia (green-blind)
#BCAA3E
Tritanopia (blue-blind)
#C69C91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a837;
/* rgb */ color: rgb(184, 168, 55);
/* oklch */ color: oklch(72.5% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#d1c175',
    500: '#b8a837',
    950: '#000000',
  },
}
SCSS
$custom: #b8a837;
$custom-light: #d1c175;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a837",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 55
  },
  "hsl": {
    "h": 52.558,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72488,
    "c": 0.13097,
    "h": 101.1
  },
  "luminance": 0.38471
}

Semantic roles & 50–950 ramp

primary
#B8A837
secondary
#848CC7
accent
#5DDD4A
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A837

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

Preview Lab → · Contrast checker → · Palette generator →

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