#B8A640#B8A640

#B8A640 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.1% C 0.123 H 99.2°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#B8A640
RGBrgb(184, 166, 64)
HSLhsl(51, 48%, 49%)
HSVhsv(51, 65%, 72%)
CMYKcmyk(0%, 9.8%, 65.2%, 27.8%)
CIE-LABlab(67.90, -5.55, 53.39)
CIE-LCHlch(67.90, 53.68, 95.93°)
OKLaboklab(72.14% -0.0197 0.1211)
OKLCHoklch(72.14% 0.123 99.2)
XYZxyz(34.3303, 37.8345, 10.3440)
Luminance0.3783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A640 #4052B8
analogous
#B86A40 #B8A640 #8EB840
triadic
#B8A640 #40B8A6 #A640B8
tetradic
#B8A640 #40B86A #4052B8 #B8408E
square
#B8A640 #40B86A #4052B8 #B8408E
split-complementary
#B8A640 #408EB8 #6A40B8
monochromatic
#5D5420 #8B7D30 #B8A640 #CBBD6A #DBD197

Accessibility & contrast

On white

2.45
#B8A640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#B8A640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A640
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A640#FFFFFF#000000##000000
##B8A6401.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A234
Deuteranopia (green-blind)
#BAA846
Tritanopia (blue-blind)
#C69A91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a640;
/* rgb */ color: rgb(184, 166, 64);
/* oklch */ color: oklch(72.1% 0.123 99.2);
Tailwind
colors: {
  custom: {
    50: '#d0c07a',
    500: '#b8a640',
    950: '#000000',
  },
}
SCSS
$custom: #b8a640;
$custom-light: #d0c07a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a640",
  "rgb": {
    "r": 184,
    "g": 166,
    "b": 64
  },
  "hsl": {
    "h": 51,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.72138,
    "c": 0.12268,
    "h": 99.2
  },
  "luminance": 0.37833
}

Semantic roles & 50–950 ramp

primary
#B8A640
secondary
#8D96C7
accent
#64D850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A640

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

Preview Lab → · Contrast checker → · Palette generator →

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