#B7A23A#B7A23A

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

Color values

HEX#B7A23A
RGBrgb(183, 162, 58)
HSLhsl(50, 52%, 47%)
HSVhsv(50, 68%, 72%)
CMYKcmyk(0%, 11.5%, 68.3%, 28.2%)
CIE-LABlab(66.68, -4.22, 54.66)
CIE-LCHlch(66.68, 54.82, 94.41°)
OKLaboklab(71.14% -0.0165 0.1228)
OKLCHoklch(71.14% 0.124 97.7)
XYZxyz(33.2140, 36.2150, 9.2429)
Luminance0.3621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A23A #3A4FB7
analogous
#B7643A #B7A23A #8EB73A
triadic
#B7A23A #3AB7A2 #A23AB7
tetradic
#B7A23A #3AB764 #3A4FB7 #B73A8E
square
#B7A23A #3AB764 #3A4FB7 #B73A8E
split-complementary
#B7A23A #3A8EB7 #643AB7
monochromatic
#5A501D #89792B #B7A23A #CDBB61 #DCCF90

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7A23A#FFFFFF#000000##000000
##B7A23A1.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)
#B29E2C
Deuteranopia (green-blind)
#B7A540
Tritanopia (blue-blind)
#C5968D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a23a;
/* rgb */ color: rgb(183, 162, 58);
/* oklch */ color: oklch(71.1% 0.124 97.7);
Tailwind
colors: {
  custom: {
    50: '#d0bd76',
    500: '#b7a23a',
    950: '#000000',
  },
}
SCSS
$custom: #b7a23a;
$custom-light: #d0bd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a23a",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 58
  },
  "hsl": {
    "h": 49.92,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71138,
    "c": 0.12393,
    "h": 97.7
  },
  "luminance": 0.36213
}

Semantic roles & 50–950 ramp

primary
#B7A23A
secondary
#8691C7
accent
#64DB4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A23A

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

Preview Lab → · Contrast checker → · Palette generator →

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