#B8A240#B8A240

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

Color values

HEX#B8A240
RGBrgb(184, 162, 64)
HSLhsl(49, 48%, 49%)
HSVhsv(49, 65%, 72%)
CMYKcmyk(0%, 12%, 65.2%, 27.8%)
CIE-LABlab(66.83, -3.42, 52.25)
CIE-LCHlch(66.83, 52.37, 93.75°)
OKLaboklab(71.29% -0.0136 0.1187)
OKLCHoklch(71.29% 0.119 96.5)
XYZxyz(33.6144, 36.4028, 10.1054)
Luminance0.3640 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A240 #4056B8
analogous
#B86640 #B8A240 #92B840
triadic
#B8A240 #40B8A2 #A240B8
tetradic
#B8A240 #40B866 #4056B8 #B84092
square
#B8A240 #40B866 #4056B8 #B84092
split-complementary
#B8A240 #4092B8 #6640B8
monochromatic
#5D5220 #8B7A30 #B8A240 #CBB96A #DBCF97

Accessibility & contrast

On white

2.54
#B8A240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8A240#FFFFFF#000000##000000
##B8A2401.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E34
Deuteranopia (green-blind)
#B7A645
Tritanopia (blue-blind)
#C6968D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a240;
/* rgb */ color: rgb(184, 162, 64);
/* oklch */ color: oklch(71.3% 0.119 96.5);
Tailwind
colors: {
  custom: {
    50: '#d0bd79',
    500: '#b8a240',
    950: '#000000',
  },
}
SCSS
$custom: #b8a240;
$custom-light: #d0bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a240",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 49,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.71289,
    "c": 0.11945,
    "h": 96.5
  },
  "luminance": 0.36401
}

Semantic roles & 50–950 ramp

primary
#B8A240
secondary
#8D98C7
accent
#69D850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A240

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

Preview Lab → · Contrast checker → · Palette generator →

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