#B8A138#B8A138

#B8A138 is a light, vivid yellow. Relative luminance 0.360; OKLCH L 71.0% C 0.125 H 96.6°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B8A138
RGBrgb(184, 161, 56)
HSLhsl(49, 53%, 47%)
HSVhsv(49, 70%, 72%)
CMYKcmyk(0%, 12.5%, 69.6%, 27.8%)
CIE-LABlab(66.49, -3.35, 55.33)
CIE-LCHlch(66.49, 55.43, 93.47°)
OKLaboklab(71.01% -0.0144 0.1239)
OKLCHoklch(71.01% 0.125 96.6)
XYZxyz(33.2274, 35.9673, 8.9328)
Luminance0.3597 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A138 #384FB8
analogous
#B86138 #B8A138 #8FB838
triadic
#B8A138 #38B8A1 #A138B8
tetradic
#B8A138 #38B861 #384FB8 #B8388F
square
#B8A138 #38B861 #384FB8 #B8388F
split-complementary
#B8A138 #388FB8 #6138B8
monochromatic
#5A4F1B #89782A #B8A138 #CEBA5F #DDCE8E

Accessibility & contrast

On white

2.56
#B8A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#B8A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A138
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A138#FFFFFF#000000##000000
##B8A1381.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B7A53E
Tritanopia (blue-blind)
#C6958C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a138;
/* rgb */ color: rgb(184, 161, 56);
/* oklch */ color: oklch(71.0% 0.125 96.6);
Tailwind
colors: {
  custom: {
    50: '#d1bc75',
    500: '#b8a138',
    950: '#000000',
  },
}
SCSS
$custom: #b8a138;
$custom-light: #d1bc75;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a138",
  "rgb": {
    "r": 184,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 49.219,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71006,
    "c": 0.12468,
    "h": 96.6
  },
  "luminance": 0.35966
}

Semantic roles & 50–950 ramp

primary
#B8A138
secondary
#8591C7
accent
#65DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141109
muted
#83807B

Preview Lab

Preview with #B8A138

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

Preview Lab → · Contrast checker → · Palette generator →

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