#B9AF30#B9AF30

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

Color values

HEX#B9AF30
RGBrgb(185, 175, 48)
HSLhsl(56, 59%, 46%)
HSVhsv(56, 74%, 73%)
CMYKcmyk(0%, 5.4%, 74.1%, 27.5%)
CIE-LABlab(70.31, -10.68, 62.15)
CIE-LCHlch(70.31, 63.06, 99.75°)
OKLaboklab(74.04% -0.036 0.1368)
OKLCHoklch(74.04% 0.141 104.8)
XYZxyz(35.8726, 41.1890, 8.8564)
Luminance0.4119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9AF30 #303AB9
analogous
#B96A30 #B9AF30 #7FB930
triadic
#B9AF30 #30B9AF #AF30B9
tetradic
#B9AF30 #30B96A #303AB9 #B9307F
square
#B9AF30 #30B96A #303AB9 #B9307F
split-complementary
#B9AF30 #307FB9 #6A30B9
monochromatic
#585317 #888123 #B9AF30 #D3C954 #DFD984

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9AF30#FFFFFF#000000##000000
##B9AF301.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)
#BFA917
Deuteranopia (green-blind)
#C2AE39
Tritanopia (blue-blind)
#C7A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b9af30;
/* rgb */ color: rgb(185, 175, 48);
/* oklch */ color: oklch(74.0% 0.141 104.8);
Tailwind
colors: {
  custom: {
    50: '#d2c672',
    500: '#b9af30',
    950: '#000000',
  },
}
SCSS
$custom: #b9af30;
$custom-light: #d2c672;
$custom-dark: #000000;
JSON
{
  "hex": "#b9af30",
  "rgb": {
    "r": 185,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 55.62,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74038,
    "c": 0.14145,
    "h": 104.8
  },
  "luminance": 0.41188
}

Semantic roles & 50–950 ramp

primary
#B9AF30
secondary
#7C82C9
accent
#51E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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