#B8A751#B8A751

#B8A751 is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.5% C 0.109 H 98.3°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#B8A751
RGBrgb(184, 167, 81)
HSLhsl(50, 42%, 52%)
HSVhsv(50, 56%, 72%)
CMYKcmyk(0%, 9.2%, 56%, 27.8%)
CIE-LABlab(68.33, -4.87, 46.04)
CIE-LCHlch(68.33, 46.29, 96.04°)
OKLaboklab(72.53% -0.0157 0.1076)
OKLCHoklch(72.53% 0.109 98.3)
XYZxyz(35.0723, 38.4233, 13.3520)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A751 #5162B8
analogous
#B87451 #B8A751 #96B851
triadic
#B8A751 #51B8A7 #A751B8
tetradic
#B8A751 #51B874 #5162B8 #B85196
square
#B8A751 #51B874 #5162B8 #B85196
split-complementary
#B8A751 #5196B8 #7451B8
monochromatic
#655B29 #91833B #B8A751 #CABD7C #DBD3A8

Accessibility & contrast

On white

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

On black

8.68
#B8A751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A751
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A751#FFFFFF#000000##000000
##B8A7511.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A349
Deuteranopia (green-blind)
#BAA955
Tritanopia (blue-blind)
#C59C94
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a751;
/* rgb */ color: rgb(184, 167, 81);
/* oklch */ color: oklch(72.5% 0.109 98.3);
Tailwind
colors: {
  custom: {
    50: '#d0c084',
    500: '#b8a751',
    950: '#000000',
  },
}
SCSS
$custom: #b8a751;
$custom-light: #d0c084;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a751",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 81
  },
  "hsl": {
    "h": 50.097,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.72534,
    "c": 0.10878,
    "h": 98.3
  },
  "luminance": 0.38422
}

Semantic roles & 50–950 ramp

primary
#B8A751
secondary
#9CA3C9
accent
#6AD256
background
#FDFBF8
surface
#FAF7EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A751

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

Preview Lab → · Contrast checker → · Palette generator →

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