#B8A42F#B8A42F

#B8A42F is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.133 H 99.2°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#B8A42F
RGBrgb(184, 164, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 74%, 72%)
CMYKcmyk(0%, 10.9%, 74.5%, 27.8%)
CIE-LABlab(67.24, -5.40, 59.56)
CIE-LCHlch(67.24, 59.81, 95.18°)
OKLaboklab(71.58% -0.0211 0.1311)
OKLCHoklch(71.58% 0.133 99.2)
XYZxyz(33.5574, 36.9482, 8.0529)
Luminance0.3695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A42F #2F43B8
analogous
#B8602F #B8A42F #87B82F
triadic
#B8A42F #2FB8A4 #A42FB8
tetradic
#B8A42F #2FB860 #2F43B8 #B82F87
square
#B8A42F #2FB860 #2F43B8 #B82F87
split-complementary
#B8A42F #2F87B8 #602FB8
monochromatic
#574D16 #877923 #B8A42F #D3C052 #DFD282

Accessibility & contrast

On white

2.50
#B8A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B8A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A42F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A42F#FFFFFF#000000##000000
##B8A42F1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01A
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#C7988D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a42f;
/* rgb */ color: rgb(184, 164, 47);
/* oklch */ color: oklch(71.6% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#d1be70',
    500: '#b8a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a42f;
$custom-light: #d1be70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a42f",
  "rgb": {
    "r": 184,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 51.241,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71575,
    "c": 0.13283,
    "h": 99.2
  },
  "luminance": 0.36947
}

Semantic roles & 50–950 ramp

primary
#B8A42F
secondary
#7B86C8
accent
#5CE245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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