#B9AF3A#B9AF3A

#B9AF3A is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.1% C 0.135 H 104.4°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#B9AF3A
RGBrgb(185, 175, 58)
HSLhsl(55, 52%, 48%)
HSVhsv(55, 69%, 73%)
CMYKcmyk(0%, 5.4%, 68.6%, 27.5%)
CIE-LABlab(70.37, -10.19, 58.48)
CIE-LCHlch(70.37, 59.36, 99.88°)
OKLaboklab(74.11% -0.0336 0.1308)
OKLCHoklch(74.11% 0.135 104.4)
XYZxyz(36.1027, 41.2811, 10.0685)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AF3A #3A44B9
analogous
#B9703A #B9AF3A #83B93A
triadic
#B9AF3A #3AB9AF #AF3AB9
tetradic
#B9AF3A #3AB970 #3A44B9 #B93A83
square
#B9AF3A #3AB970 #3A44B9 #B93A83
split-complementary
#B9AF3A #3A83B9 #703AB9
monochromatic
#5C571D #8A832B #B9AF3A #CEC562 #DCD791

Accessibility & contrast

On white

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

On black

9.26
#B9AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AF3A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AF3A#FFFFFF#000000##000000
##B9AF3A1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA929
Deuteranopia (green-blind)
#C2AF42
Tritanopia (blue-blind)
#C7A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b9af3a;
/* rgb */ color: rgb(185, 175, 58);
/* oklch */ color: oklch(74.1% 0.135 104.4);
Tailwind
colors: {
  custom: {
    50: '#d1c677',
    500: '#b9af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b9af3a;
$custom-light: #d1c677;
$custom-dark: #000000;
JSON
{
  "hex": "#b9af3a",
  "rgb": {
    "r": 185,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 55.276,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.74109,
    "c": 0.13506,
    "h": 104.4
  },
  "luminance": 0.4128
}

Semantic roles & 50–950 ramp

primary
#B9AF3A
secondary
#878CC7
accent
#57DC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B9AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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