#B8A738#B8A738

#B8A738 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.129 H 100.4°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#B8A738
RGBrgb(184, 167, 56)
HSLhsl(52, 53%, 47%)
HSVhsv(52, 70%, 72%)
CMYKcmyk(0%, 9.2%, 69.6%, 27.8%)
CIE-LABlab(68.11, -6.54, 56.96)
CIE-LCHlch(68.11, 57.33, 96.55°)
OKLaboklab(72.28% -0.0234 0.1273)
OKLCHoklch(72.28% 0.129 100.4)
XYZxyz(34.3012, 38.1149, 9.2907)
Luminance0.3811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A738 #3849B8
analogous
#B86738 #B8A738 #89B838
triadic
#B8A738 #38B8A7 #A738B8
tetradic
#B8A738 #38B867 #3849B8 #B83889
square
#B8A738 #38B867 #3849B8 #B83889
split-complementary
#B8A738 #3889B8 #6738B8
monochromatic
#5A521B #897C2A #B8A738 #CEBF5F #DDD28E

Accessibility & contrast

On white

2.44
#B8A738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#B8A738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A738
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A738#FFFFFF#000000##000000
##B8A7381.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A228
Deuteranopia (green-blind)
#BBA93F
Tritanopia (blue-blind)
#C69B91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b8a738;
/* rgb */ color: rgb(184, 167, 56);
/* oklch */ color: oklch(72.3% 0.129 100.4);
Tailwind
colors: {
  custom: {
    50: '#d1c075',
    500: '#b8a738',
    950: '#000000',
  },
}
SCSS
$custom: #b8a738;
$custom-light: #d1c075;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a738",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 56
  },
  "hsl": {
    "h": 52.031,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72282,
    "c": 0.12944,
    "h": 100.4
  },
  "luminance": 0.38113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8A738

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

Preview Lab → · Contrast checker → · Palette generator →

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