#B8AF2A#B8AF2A

#B8AF2A is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.9% C 0.145 H 105.4°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#B8AF2A
RGBrgb(184, 175, 42)
HSLhsl(56, 63%, 44%)
HSVhsv(56, 77%, 72%)
CMYKcmyk(0%, 4.9%, 77.2%, 27.8%)
CIE-LABlab(70.19, -11.37, 64.02)
CIE-LCHlch(70.19, 65.02, 100.07°)
OKLaboklab(73.91% -0.0384 0.1397)
OKLCHoklch(73.91% 0.145 105.4)
XYZxyz(35.5166, 41.0188, 8.2366)
Luminance0.4102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AF2A #2A33B8
analogous
#B8682A #B8AF2A #7AB82A
triadic
#B8AF2A #2AB8AF #AF2AB8
tetradic
#B8AF2A #2AB868 #2A33B8 #B82A7A
square
#B8AF2A #2AB868 #2A33B8 #B82A7A
split-complementary
#B8AF2A #2A7AB8 #682AB8
monochromatic
#545013 #86801F #B8AF2A #D6CD4A #E1DB7B

Accessibility & contrast

On white

2.28
#B8AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#B8AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AF2A
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AF2A#FFFFFF#000000##000000
##B8AF2A1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA906
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C6A396
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8af2a;
/* rgb */ color: rgb(184, 175, 42);
/* oklch */ color: oklch(73.9% 0.145 105.4);
Tailwind
colors: {
  custom: {
    50: '#d1c66f',
    500: '#b8af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b8af2a;
$custom-light: #d1c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8af2a",
  "rgb": {
    "r": 184,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 56.197,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73912,
    "c": 0.14485,
    "h": 105.4
  },
  "luminance": 0.41017
}

Semantic roles & 50–950 ramp

primary
#B8AF2A
secondary
#757AC9
accent
#4CE642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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