#B8A638#B8A638

#B8A638 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 72.1% C 0.129 H 99.8°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#B8A638
RGBrgb(184, 166, 56)
HSLhsl(52, 53%, 47%)
HSVhsv(52, 70%, 72%)
CMYKcmyk(0%, 9.8%, 69.6%, 27.8%)
CIE-LABlab(67.84, -6.01, 56.69)
CIE-LCHlch(67.84, 57.01, 96.05°)
OKLaboklab(72.07% -0.0219 0.1267)
OKLCHoklch(72.07% 0.129 99.8)
XYZxyz(34.1187, 37.7499, 9.2299)
Luminance0.3775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A638 #384AB8
analogous
#B86638 #B8A638 #8AB838
triadic
#B8A638 #38B8A6 #A638B8
tetradic
#B8A638 #38B866 #384AB8 #B8388A
square
#B8A638 #38B866 #384AB8 #B8388A
split-complementary
#B8A638 #388AB8 #6638B8
monochromatic
#5A511B #897C2A #B8A638 #CEBF5F #DDD18E

Accessibility & contrast

On white

2.46
#B8A638 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#B8A638 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A638
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A638#FFFFFF#000000##000000
##B8A6381.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A128
Deuteranopia (green-blind)
#BBA83F
Tritanopia (blue-blind)
#C69A90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a638;
/* rgb */ color: rgb(184, 166, 56);
/* oklch */ color: oklch(72.1% 0.129 99.8);
Tailwind
colors: {
  custom: {
    50: '#d1c075',
    500: '#b8a638',
    950: '#000000',
  },
}
SCSS
$custom: #b8a638;
$custom-light: #d1c075;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a638",
  "rgb": {
    "r": 184,
    "g": 166,
    "b": 56
  },
  "hsl": {
    "h": 51.563,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72068,
    "c": 0.1286,
    "h": 99.8
  },
  "luminance": 0.37748
}

Semantic roles & 50–950 ramp

primary
#B8A638
secondary
#858EC7
accent
#60DD4B
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A638

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

Preview Lab → · Contrast checker → · Palette generator →

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