#B9B42F#B9B42F

#B9B42F is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.147 H 107.2°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#B9B42F
RGBrgb(185, 180, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 75%, 73%)
CMYKcmyk(0%, 2.7%, 74.6%, 27.5%)
CIE-LABlab(71.67, -13.30, 63.77)
CIE-LCHlch(71.67, 65.14, 101.78°)
OKLaboklab(75.12% -0.0435 0.14)
OKLCHoklch(75.12% 0.147 107.2)
XYZxyz(36.8434, 43.1633, 9.0794)
Luminance0.4316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B42F #2F34B9
analogous
#B96F2F #B9B42F #79B92F
triadic
#B9B42F #2FB9B4 #B42FB9
tetradic
#B9B42F #2FB96F #2F34B9 #B92F79
square
#B9B42F #2FB96F #2F34B9 #B92F79
split-complementary
#B9B42F #2F79B9 #6F2FB9
monochromatic
#575516 #888523 #B9B42F #D3CE52 #DFDC83

Accessibility & contrast

On white

2.18
#B9B42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#B9B42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B42F
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B42F#FFFFFF#000000##000000
##B9B42F1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD12
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b42f;
/* rgb */ color: rgb(185, 180, 47);
/* oklch */ color: oklch(75.1% 0.147 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca72',
    500: '#b9b42f',
    950: '#000000',
  },
}
SCSS
$custom: #b9b42f;
$custom-light: #d2ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b42f",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 57.826,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75118,
    "c": 0.14663,
    "h": 107.2
  },
  "luminance": 0.43162
}

Semantic roles & 50–950 ramp

primary
#B9B42F
secondary
#7B7EC9
accent
#4BE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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