#B8A22F#B8A22F

#B8A22F is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.131 H 97.9°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B8A22F
RGBrgb(184, 162, 47)
HSLhsl(50, 59%, 45%)
HSVhsv(50, 74%, 72%)
CMYKcmyk(0%, 12%, 74.5%, 27.8%)
CIE-LABlab(66.70, -4.33, 59.05)
CIE-LCHlch(66.70, 59.21, 94.20°)
OKLaboklab(71.15% -0.0181 0.1301)
OKLCHoklch(71.15% 0.131 97.9)
XYZxyz(33.2022, 36.2379, 7.9345)
Luminance0.3624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A22F #2F45B8
analogous
#B85D2F #B8A22F #89B82F
triadic
#B8A22F #2FB8A2 #A22FB8
tetradic
#B8A22F #2FB85D #2F45B8 #B82F89
square
#B8A22F #2FB85D #2F45B8 #B82F89
split-complementary
#B8A22F #2F89B8 #5D2FB8
monochromatic
#574C16 #877723 #B8A22F #D3BE52 #DFD082

Accessibility & contrast

On white

2.55
#B8A22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B8A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A22F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A22F#FFFFFF#000000##000000
##B8A22F1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1B
Deuteranopia (green-blind)
#B8A536
Tritanopia (blue-blind)
#C7968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a22f;
/* rgb */ color: rgb(184, 162, 47);
/* oklch */ color: oklch(71.2% 0.131 97.9);
Tailwind
colors: {
  custom: {
    50: '#d1bd70',
    500: '#b8a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a22f;
$custom-light: #d1bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a22f",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 50.365,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7115,
    "c": 0.13131,
    "h": 97.9
  },
  "luminance": 0.36236
}

Semantic roles & 50–950 ramp

primary
#B8A22F
secondary
#7B87C8
accent
#5FE245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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