#B8A23F#B8A23F

#B8A23F is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.3% C 0.120 H 96.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#B8A23F
RGBrgb(184, 162, 63)
HSLhsl(49, 49%, 48%)
HSVhsv(49, 66%, 72%)
CMYKcmyk(0%, 12%, 65.8%, 27.8%)
CIE-LABlab(66.82, -3.48, 52.68)
CIE-LCHlch(66.82, 52.80, 93.78°)
OKLaboklab(71.28% -0.0139 0.1194)
OKLCHoklch(71.28% 0.12 96.6)
XYZxyz(33.5862, 36.3915, 9.9568)
Luminance0.3639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A23F #3F55B8
analogous
#B8653F #B8A23F #91B83F
triadic
#B8A23F #3FB8A2 #A23FB8
tetradic
#B8A23F #3FB865 #3F55B8 #B83F91
square
#B8A23F #3FB865 #3F55B8 #B83F91
split-complementary
#B8A23F #3F91B8 #653FB8
monochromatic
#5D5220 #8A7A2F #B8A23F #CCBA69 #DBCF96

Accessibility & contrast

On white

2.54
#B8A23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#B8A23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A23F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A23F#FFFFFF#000000##000000
##B8A23F1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E33
Deuteranopia (green-blind)
#B7A644
Tritanopia (blue-blind)
#C6968D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a23f;
/* rgb */ color: rgb(184, 162, 63);
/* oklch */ color: oklch(71.3% 0.120 96.6);
Tailwind
colors: {
  custom: {
    50: '#d0bd79',
    500: '#b8a23f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a23f;
$custom-light: #d0bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a23f",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 63
  },
  "hsl": {
    "h": 49.091,
    "s": 48.988,
    "l": 48.431
  },
  "oklch": {
    "l": 0.7128,
    "c": 0.12024,
    "h": 96.6
  },
  "luminance": 0.3639
}

Semantic roles & 50–950 ramp

primary
#B8A23F
secondary
#8C97C7
accent
#68D94F
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A23F

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

Preview Lab → · Contrast checker → · Palette generator →

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