#B8A04F#B8A04F

#B8A04F is a light, moderate yellow. Relative luminance 0.359; OKLCH L 71.0% C 0.105 H 93.1°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B8A04F
RGBrgb(184, 160, 79)
HSLhsl(46, 43%, 52%)
HSVhsv(46, 57%, 72%)
CMYKcmyk(0%, 13%, 57.1%, 27.8%)
CIE-LABlab(66.44, -1.29, 44.82)
CIE-LCHlch(66.44, 44.84, 91.65°)
OKLaboklab(71.03% -0.0056 0.1048)
OKLCHoklch(71.03% 0.105 93.1)
XYZxyz(33.7506, 35.8981, 12.5469)
Luminance0.3590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A04F #4F67B8
analogous
#B86C4F #B8A04F #9CB84F
triadic
#B8A04F #4FB8A0 #A04FB8
tetradic
#B8A04F #4FB86C #4F67B8 #B84F9C
square
#B8A04F #4FB86C #4F67B8 #B84F9C
split-complementary
#B8A04F #4F9CB8 #6C4FB8
monochromatic
#645728 #907C3A #B8A04F #CAB87B #DBCFA6

Accessibility & contrast

On white

2.57
#B8A04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B8A04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A04F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A04F#FFFFFF#000000##000000
##B8A04F1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D47
Deuteranopia (green-blind)
#B5A552
Tritanopia (blue-blind)
#C5958E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a04f;
/* rgb */ color: rgb(184, 160, 79);
/* oklch */ color: oklch(71.0% 0.105 93.1);
Tailwind
colors: {
  custom: {
    50: '#d0bb83',
    500: '#b8a04f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a04f;
$custom-light: #d0bb83;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a04f",
  "rgb": {
    "r": 184,
    "g": 160,
    "b": 79
  },
  "hsl": {
    "h": 46.286,
    "s": 42.51,
    "l": 51.569
  },
  "oklch": {
    "l": 0.71033,
    "c": 0.10493,
    "h": 93.1
  },
  "luminance": 0.35896
}

Semantic roles & 50–950 ramp

primary
#B8A04F
secondary
#9AA5C8
accent
#72D256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14110B
muted
#83807C

Preview Lab

Preview with #B8A04F

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

Preview Lab → · Contrast checker → · Palette generator →

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