#B8A22C#B8A22C

#B8A22C is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.1% C 0.133 H 98.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#B8A22C
RGBrgb(184, 162, 44)
HSLhsl(51, 61%, 45%)
HSVhsv(51, 76%, 72%)
CMYKcmyk(0%, 12%, 76.1%, 27.8%)
CIE-LABlab(66.68, -4.46, 60.11)
CIE-LCHlch(66.68, 60.28, 94.25°)
OKLaboklab(71.13% -0.0188 0.1317)
OKLCHoklch(71.13% 0.133 98.1)
XYZxyz(33.1438, 36.2146, 7.6267)
Luminance0.3621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A22C #2C42B8
analogous
#B85C2C #B8A22C #88B82C
triadic
#B8A22C #2CB8A2 #A22CB8
tetradic
#B8A22C #2CB85C #2C42B8 #B82C88
square
#B8A22C #2CB85C #2C42B8 #B82C88
split-complementary
#B8A22C #2C88B8 #5C2CB8
monochromatic
#554B14 #877720 #B8A22C #D4BF4D #E0D17E

Accessibility & contrast

On white

2.55
#B8A22C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#B8A22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A22C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A22C#FFFFFF#000000##000000
##B8A22C1.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E15
Deuteranopia (green-blind)
#B8A534
Tritanopia (blue-blind)
#C7958B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a22c;
/* rgb */ color: rgb(184, 162, 44);
/* oklch */ color: oklch(71.1% 0.133 98.1);
Tailwind
colors: {
  custom: {
    50: '#d1bd6e',
    500: '#b8a22c',
    950: '#000000',
  },
}
SCSS
$custom: #b8a22c;
$custom-light: #d1bd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a22c",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 50.571,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7113,
    "c": 0.13307,
    "h": 98.1
  },
  "luminance": 0.36213
}

Semantic roles & 50–950 ramp

primary
#B8A22C
secondary
#7784C9
accent
#5DE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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