#B9B42D#B9B42D

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

Color values

HEX#B9B42D
RGBrgb(185, 180, 45)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.7%, 75.7%, 27.5%)
CIE-LABlab(71.66, -13.39, 64.42)
CIE-LCHlch(71.66, 65.80, 101.74°)
OKLaboklab(75.11% -0.0439 0.1411)
OKLCHoklch(75.11% 0.148 107.3)
XYZxyz(36.8040, 43.1476, 8.8718)
Luminance0.4315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B42D #2D32B9
analogous
#B96E2D #B9B42D #78B92D
triadic
#B9B42D #2DB9B4 #B42DB9
tetradic
#B9B42D #2DB96E #2D32B9 #B92D78
square
#B9B42D #2DB96E #2D32B9 #B92D78
split-complementary
#B9B42D #2D78B9 #6E2DB9
monochromatic
#575415 #888421 #B9B42D #D4CF4F #E0DD80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B42D#FFFFFF#000000##000000
##B9B42D1.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)
#C4AD0C
Deuteranopia (green-blind)
#C6B238
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b42d;
/* rgb */ color: rgb(185, 180, 45);
/* oklch */ color: oklch(75.1% 0.148 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2ca71',
    500: '#b9b42d',
    950: '#000000',
  },
}
SCSS
$custom: #b9b42d;
$custom-light: #d2ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b42d",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 57.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75106,
    "c": 0.14772,
    "h": 107.3
  },
  "luminance": 0.43146
}

Semantic roles & 50–950 ramp

primary
#B9B42D
secondary
#797CC9
accent
#4AE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B42D

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

Preview Lab → · Contrast checker → · Palette generator →

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