#B8A838#B8A838

#B8A838 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.5% C 0.130 H 101.0°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#B8A838
RGBrgb(184, 168, 56)
HSLhsl(53, 53%, 47%)
HSVhsv(53, 70%, 72%)
CMYKcmyk(0%, 8.7%, 69.6%, 27.8%)
CIE-LABlab(68.37, -7.07, 57.23)
CIE-LCHlch(68.37, 57.67, 97.04°)
OKLaboklab(72.5% -0.0249 0.1279)
OKLCHoklch(72.5% 0.13 101)
XYZxyz(34.4851, 38.4827, 9.3520)
Luminance0.3848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A838 #3848B8
analogous
#B86838 #B8A838 #88B838
triadic
#B8A838 #38B8A8 #A838B8
tetradic
#B8A838 #38B868 #3848B8 #B83888
square
#B8A838 #38B868 #3848B8 #B83888
split-complementary
#B8A838 #3888B8 #6838B8
monochromatic
#5A521B #897D2A #B8A838 #CEC05F #DDD38E

Accessibility & contrast

On white

2.41
#B8A838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#B8A838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A838
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A838#FFFFFF#000000##000000
##B8A8381.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A328
Deuteranopia (green-blind)
#BCAA3F
Tritanopia (blue-blind)
#C69C91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a838;
/* rgb */ color: rgb(184, 168, 56);
/* oklch */ color: oklch(72.5% 0.130 101.0);
Tailwind
colors: {
  custom: {
    50: '#d1c175',
    500: '#b8a838',
    950: '#000000',
  },
}
SCSS
$custom: #b8a838;
$custom-light: #d1c175;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a838",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 52.5,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72496,
    "c": 0.13028,
    "h": 101
  },
  "luminance": 0.38481
}

Semantic roles & 50–950 ramp

primary
#B8A838
secondary
#858DC7
accent
#5DDD4B
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A838

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

Preview Lab → · Contrast checker → · Palette generator →

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