#B8A42C#B8A42C

#B8A42C is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.135 H 99.3°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B8A42C
RGBrgb(184, 164, 44)
HSLhsl(51, 61%, 45%)
HSVhsv(51, 76%, 72%)
CMYKcmyk(0%, 10.9%, 76.1%, 27.8%)
CIE-LABlab(67.22, -5.53, 60.62)
CIE-LCHlch(67.22, 60.87, 95.21°)
OKLaboklab(71.56% -0.0218 0.1328)
OKLCHoklch(71.56% 0.135 99.3)
XYZxyz(33.4989, 36.9248, 7.7451)
Luminance0.3692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A42C #2C40B8
analogous
#B85E2C #B8A42C #86B82C
triadic
#B8A42C #2CB8A4 #A42CB8
tetradic
#B8A42C #2CB85E #2C40B8 #B82C86
square
#B8A42C #2CB85E #2C40B8 #B82C86
split-complementary
#B8A42C #2C86B8 #5E2CB8
monochromatic
#554C14 #877820 #B8A42C #D4C14D #E0D27E

Accessibility & contrast

On white

2.50
#B8A42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B8A42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A42C
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A42C#FFFFFF#000000##000000
##B8A42C1.002.508.388.38
#FFFFFF2.501.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A014
Deuteranopia (green-blind)
#BAA734
Tritanopia (blue-blind)
#C7978D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a42c;
/* rgb */ color: rgb(184, 164, 44);
/* oklch */ color: oklch(71.6% 0.135 99.3);
Tailwind
colors: {
  custom: {
    50: '#d1be6f',
    500: '#b8a42c',
    950: '#000000',
  },
}
SCSS
$custom: #b8a42c;
$custom-light: #d1be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a42c",
  "rgb": {
    "r": 184,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 51.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71556,
    "c": 0.13458,
    "h": 99.3
  },
  "luminance": 0.36923
}

Semantic roles & 50–950 ramp

primary
#B8A42C
secondary
#7783C9
accent
#5AE543
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A42C

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

Preview Lab → · Contrast checker → · Palette generator →

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