#B8AF40#B8AF40

#B8AF40 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 74.1% C 0.131 H 104.7°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#B8AF40
RGBrgb(184, 175, 64)
HSLhsl(56, 48%, 49%)
HSVhsv(56, 65%, 72%)
CMYKcmyk(0%, 4.9%, 65.2%, 27.8%)
CIE-LABlab(70.33, -10.27, 55.96)
CIE-LCHlch(70.33, 56.89, 100.40°)
OKLaboklab(74.07% -0.0331 0.1265)
OKLCHoklch(74.07% 0.131 104.7)
XYZxyz(36.0239, 41.2218, 10.9085)
Luminance0.4122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AF40 #4049B8
analogous
#B87340 #B8AF40 #85B840
triadic
#B8AF40 #40B8AF #AF40B8
tetradic
#B8AF40 #40B873 #4049B8 #B84085
square
#B8AF40 #40B873 #4049B8 #B84085
split-complementary
#B8AF40 #4085B8 #7340B8
monochromatic
#5D5920 #8B8430 #B8AF40 #CBC46A #DBD697

Accessibility & contrast

On white

2.27
#B8AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#B8AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AF40
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AF40#FFFFFF#000000##000000
##B8AF401.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA932
Deuteranopia (green-blind)
#C1AE47
Tritanopia (blue-blind)
#C5A498
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8af40;
/* rgb */ color: rgb(184, 175, 64);
/* oklch */ color: oklch(74.1% 0.131 104.7);
Tailwind
colors: {
  custom: {
    50: '#d0c67a',
    500: '#b8af40',
    950: '#000000',
  },
}
SCSS
$custom: #b8af40;
$custom-light: #d0c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8af40",
  "rgb": {
    "r": 184,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 55.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.7407,
    "c": 0.13078,
    "h": 104.7
  },
  "luminance": 0.4122
}

Semantic roles & 50–950 ramp

primary
#B8AF40
secondary
#8D91C7
accent
#5AD850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B8AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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