#B8A040#B8A040

#B8A040 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.9% C 0.118 H 95.1°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B8A040
RGBrgb(184, 160, 64)
HSLhsl(48, 48%, 49%)
HSVhsv(48, 65%, 72%)
CMYKcmyk(0%, 13%, 65.2%, 27.8%)
CIE-LABlab(66.29, -2.35, 51.68)
CIE-LCHlch(66.29, 51.74, 92.61°)
OKLaboklab(70.87% -0.0105 0.1175)
OKLCHoklch(70.87% 0.118 95.1)
XYZxyz(33.2649, 35.7038, 9.9889)
Luminance0.3570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A040 #4058B8
analogous
#B86440 #B8A040 #94B840
triadic
#B8A040 #40B8A0 #A040B8
tetradic
#B8A040 #40B864 #4058B8 #B84094
square
#B8A040 #40B864 #4058B8 #B84094
split-complementary
#B8A040 #4094B8 #6440B8
monochromatic
#5D5120 #8B7930 #B8A040 #CBB86A #DBCD97

Accessibility & contrast

On white

2.58
#B8A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#B8A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A040
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A040#FFFFFF#000000##000000
##B8A0401.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D35
Deuteranopia (green-blind)
#B6A445
Tritanopia (blue-blind)
#C6948C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b8a040;
/* rgb */ color: rgb(184, 160, 64);
/* oklch */ color: oklch(70.9% 0.118 95.1);
Tailwind
colors: {
  custom: {
    50: '#d0bb79',
    500: '#b8a040',
    950: '#000000',
  },
}
SCSS
$custom: #b8a040;
$custom-light: #d0bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a040",
  "rgb": {
    "r": 184,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 48,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.70867,
    "c": 0.11793,
    "h": 95.1
  },
  "luminance": 0.35702
}

Semantic roles & 50–950 ramp

primary
#B8A040
secondary
#8D99C7
accent
#6BD850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B8A040

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

Preview Lab → · Contrast checker → · Palette generator →

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