#B9AF34#B9AF34

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

Color values

HEX#B9AF34
RGBrgb(185, 175, 52)
HSLhsl(55, 56%, 46%)
HSVhsv(55, 72%, 73%)
CMYKcmyk(0%, 5.4%, 71.9%, 27.5%)
CIE-LABlab(70.33, -10.50, 60.74)
CIE-LCHlch(70.33, 61.64, 99.80°)
OKLaboklab(74.07% -0.0351 0.1345)
OKLCHoklch(74.07% 0.139 104.6)
XYZxyz(35.9589, 41.2236, 9.3110)
Luminance0.4122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AF34 #343EB9
analogous
#B96D34 #B9AF34 #81B934
triadic
#B9AF34 #34B9AF #AF34B9
tetradic
#B9AF34 #34B96D #343EB9 #B93481
square
#B9AF34 #34B96D #343EB9 #B93481
split-complementary
#B9AF34 #3481B9 #6D34B9
monochromatic
#595519 #898227 #B9AF34 #D1C85A #DED889

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9AF34#FFFFFF#000000##000000
##B9AF341.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)
#BFA91F
Deuteranopia (green-blind)
#C2AE3D
Tritanopia (blue-blind)
#C7A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b9af34;
/* rgb */ color: rgb(185, 175, 52);
/* oklch */ color: oklch(74.1% 0.139 104.6);
Tailwind
colors: {
  custom: {
    50: '#d2c674',
    500: '#b9af34',
    950: '#000000',
  },
}
SCSS
$custom: #b9af34;
$custom-light: #d2c674;
$custom-dark: #000000;
JSON
{
  "hex": "#b9af34",
  "rgb": {
    "r": 185,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 55.489,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74065,
    "c": 0.13903,
    "h": 104.6
  },
  "luminance": 0.41222
}

Semantic roles & 50–950 ramp

primary
#B9AF34
secondary
#8186C8
accent
#54DF48
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #B9AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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