#B8A238#B8A238

#B8A238 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.2% C 0.125 H 97.3°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B8A238
RGBrgb(184, 162, 56)
HSLhsl(50, 53%, 47%)
HSVhsv(50, 70%, 72%)
CMYKcmyk(0%, 12%, 69.6%, 27.8%)
CIE-LABlab(66.76, -3.89, 55.60)
CIE-LCHlch(66.76, 55.74, 94.00°)
OKLaboklab(71.22% -0.0159 0.1244)
OKLCHoklch(71.22% 0.125 97.3)
XYZxyz(33.4029, 36.3182, 8.9913)
Luminance0.3632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A238 #384EB8
analogous
#B86238 #B8A238 #8EB838
triadic
#B8A238 #38B8A2 #A238B8
tetradic
#B8A238 #38B862 #384EB8 #B8388E
square
#B8A238 #38B862 #384EB8 #B8388E
split-complementary
#B8A238 #388EB8 #6238B8
monochromatic
#5A4F1B #89792A #B8A238 #CEBB5F #DDCF8E

Accessibility & contrast

On white

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

On black

8.26
#B8A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A238
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A238#FFFFFF#000000##000000
##B8A2381.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B8A63E
Tritanopia (blue-blind)
#C6968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a238;
/* rgb */ color: rgb(184, 162, 56);
/* oklch */ color: oklch(71.2% 0.125 97.3);
Tailwind
colors: {
  custom: {
    50: '#d1bd75',
    500: '#b8a238',
    950: '#000000',
  },
}
SCSS
$custom: #b8a238;
$custom-light: #d1bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a238",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 49.688,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71218,
    "c": 0.12543,
    "h": 97.3
  },
  "luminance": 0.36317
}

Semantic roles & 50–950 ramp

primary
#B8A238
secondary
#8590C7
accent
#64DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A238

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

Preview Lab → · Contrast checker → · Palette generator →

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