#B9AF3B#B9AF3B

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

Color values

HEX#B9AF3B
RGBrgb(185, 175, 59)
HSLhsl(55, 52%, 48%)
HSVhsv(55, 68%, 73%)
CMYKcmyk(0%, 5.4%, 68.1%, 27.5%)
CIE-LABlab(70.38, -10.13, 58.09)
CIE-LCHlch(70.38, 58.96, 99.90°)
OKLaboklab(74.12% -0.0333 0.1302)
OKLCHoklch(74.12% 0.134 104.4)
XYZxyz(36.1284, 41.2914, 10.2038)
Luminance0.4129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AF3B #3B45B9
analogous
#B9703B #B9AF3B #84B93B
triadic
#B9AF3B #3BB9AF #AF3BB9
tetradic
#B9AF3B #3BB970 #3B45B9 #B93B84
square
#B9AF3B #3BB970 #3B45B9 #B93B84
split-complementary
#B9AF3B #3B84B9 #703BB9
monochromatic
#5C571D #8B832C #B9AF3B #CDC564 #DCD692

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9AF3B#FFFFFF#000000##000000
##B9AF3B1.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)
#BEA92A
Deuteranopia (green-blind)
#C2AF42
Tritanopia (blue-blind)
#C7A398
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b9af3b;
/* rgb */ color: rgb(185, 175, 59);
/* oklch */ color: oklch(74.1% 0.134 104.4);
Tailwind
colors: {
  custom: {
    50: '#d1c678',
    500: '#b9af3b',
    950: '#000000',
  },
}
SCSS
$custom: #b9af3b;
$custom-light: #d1c678;
$custom-dark: #000000;
JSON
{
  "hex": "#b9af3b",
  "rgb": {
    "r": 185,
    "g": 175,
    "b": 59
  },
  "hsl": {
    "h": 55.238,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74117,
    "c": 0.13436,
    "h": 104.4
  },
  "luminance": 0.4129
}

Semantic roles & 50–950 ramp

primary
#B9AF3B
secondary
#888DC7
accent
#58DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B9AF3B

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

Preview Lab → · Contrast checker → · Palette generator →

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