#B8A338#B8A338

#B8A338 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.4% C 0.126 H 97.9°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B8A338
RGBrgb(184, 163, 56)
HSLhsl(50, 53%, 47%)
HSVhsv(50, 70%, 72%)
CMYKcmyk(0%, 11.4%, 69.6%, 27.8%)
CIE-LABlab(67.03, -4.42, 55.87)
CIE-LCHlch(67.03, 56.05, 94.52°)
OKLaboklab(71.43% -0.0174 0.125)
OKLCHoklch(71.43% 0.126 97.9)
XYZxyz(33.5797, 36.6719, 9.0502)
Luminance0.3667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A338 #384DB8
analogous
#B86338 #B8A338 #8DB838
triadic
#B8A338 #38B8A3 #A338B8
tetradic
#B8A338 #38B863 #384DB8 #B8388D
square
#B8A338 #38B863 #384DB8 #B8388D
split-complementary
#B8A338 #388DB8 #6338B8
monochromatic
#5A501B #89792A #B8A338 #CEBC5F #DDD08E

Accessibility & contrast

On white

2.52
#B8A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B8A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A338
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A338#FFFFFF#000000##000000
##B8A3381.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F29
Deuteranopia (green-blind)
#B9A63E
Tritanopia (blue-blind)
#C6978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a338;
/* rgb */ color: rgb(184, 163, 56);
/* oklch */ color: oklch(71.4% 0.126 97.9);
Tailwind
colors: {
  custom: {
    50: '#d1bd75',
    500: '#b8a338',
    950: '#000000',
  },
}
SCSS
$custom: #b8a338;
$custom-light: #d1bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a338",
  "rgb": {
    "r": 184,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 50.156,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.7143,
    "c": 0.12621,
    "h": 97.9
  },
  "luminance": 0.3667
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8A338

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

Preview Lab → · Contrast checker → · Palette generator →

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