#B8A242#B8A242

#B8A242 is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.3% C 0.118 H 96.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#B8A242
RGBrgb(184, 162, 66)
HSLhsl(49, 47%, 49%)
HSVhsv(49, 64%, 72%)
CMYKcmyk(0%, 12%, 64.1%, 27.8%)
CIE-LABlab(66.84, -3.29, 51.38)
CIE-LCHlch(66.84, 51.49, 93.67°)
OKLaboklab(71.31% -0.013 0.1171)
OKLCHoklch(71.31% 0.118 96.3)
XYZxyz(33.6724, 36.4260, 10.4105)
Luminance0.3642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A242 #4258B8
analogous
#B86742 #B8A242 #93B842
triadic
#B8A242 #42B8A2 #A242B8
tetradic
#B8A242 #42B867 #4258B8 #B84293
square
#B8A242 #42B867 #4258B8 #B84293
split-complementary
#B8A242 #4293B8 #6742B8
monochromatic
#5E5322 #8B7A32 #B8A242 #CBB96D #DBCF9A

Accessibility & contrast

On white

2.53
#B8A242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#B8A242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A242
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A242#FFFFFF#000000##000000
##B8A2421.002.538.288.28
#FFFFFF2.531.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19F37
Deuteranopia (green-blind)
#B7A647
Tritanopia (blue-blind)
#C6968E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a242;
/* rgb */ color: rgb(184, 162, 66);
/* oklch */ color: oklch(71.3% 0.118 96.3);
Tailwind
colors: {
  custom: {
    50: '#d0bd7b',
    500: '#b8a242',
    950: '#000000',
  },
}
SCSS
$custom: #b8a242;
$custom-light: #d0bd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a242",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 48.814,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71309,
    "c": 0.11785,
    "h": 96.3
  },
  "luminance": 0.36424
}

Semantic roles & 50–950 ramp

primary
#B8A242
secondary
#8F99C7
accent
#6AD751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A242

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

Preview Lab → · Contrast checker → · Palette generator →

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