#B9AF45#B9AF45

#B9AF45 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.2% C 0.127 H 103.9°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#B9AF45
RGBrgb(185, 175, 69)
HSLhsl(55, 46%, 50%)
HSVhsv(55, 63%, 73%)
CMYKcmyk(0%, 5.4%, 62.7%, 27.5%)
CIE-LABlab(70.46, -9.53, 53.98)
CIE-LCHlch(70.46, 54.81, 100.01°)
OKLaboklab(74.21% -0.0305 0.1231)
OKLCHoklch(74.21% 0.127 103.9)
XYZxyz(36.4131, 41.4052, 11.7030)
Luminance0.4140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AF45 #454FB9
analogous
#B97545 #B9AF45 #89B945
triadic
#B9AF45 #45B9AF #AF45B9
tetradic
#B9AF45 #45B975 #454FB9 #B94589
square
#B9AF45 #45B975 #454FB9 #B94589
split-complementary
#B9AF45 #4589B9 #7545B9
monochromatic
#605B24 #8C8534 #B9AF45 #CAC271 #DBD59E

Accessibility & contrast

On white

2.26
#B9AF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#B9AF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9AF45
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9AF45#FFFFFF#000000##000000
##B9AF451.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA938
Deuteranopia (green-blind)
#C1AF4B
Tritanopia (blue-blind)
#C6A499
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b9af45;
/* rgb */ color: rgb(185, 175, 69);
/* oklch */ color: oklch(74.2% 0.127 103.9);
Tailwind
colors: {
  custom: {
    50: '#d1c67d',
    500: '#b9af45',
    950: '#000000',
  },
}
SCSS
$custom: #b9af45;
$custom-light: #d1c67d;
$custom-dark: #000000;
JSON
{
  "hex": "#b9af45",
  "rgb": {
    "r": 185,
    "g": 175,
    "b": 69
  },
  "hsl": {
    "h": 54.828,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.74206,
    "c": 0.12678,
    "h": 103.9
  },
  "luminance": 0.41404
}

Semantic roles & 50–950 ramp

primary
#B9AF45
secondary
#9397C7
accent
#5ED552
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9AF45

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

Preview Lab → · Contrast checker → · Palette generator →

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