#B9B42E#B9B42E

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

Color values

HEX#B9B42E
RGBrgb(185, 180, 46)
HSLhsl(58, 60%, 45%)
HSVhsv(58, 75%, 73%)
CMYKcmyk(0%, 2.7%, 75.1%, 27.5%)
CIE-LABlab(71.66, -13.34, 64.10)
CIE-LCHlch(71.66, 65.47, 101.76°)
OKLaboklab(75.11% -0.0437 0.1406)
OKLCHoklch(75.11% 0.147 107.3)
XYZxyz(36.8235, 43.1553, 8.9744)
Luminance0.4315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B42E #2E33B9
analogous
#B96F2E #B9B42E #78B92E
triadic
#B9B42E #2EB9B4 #B42EB9
tetradic
#B9B42E #2EB96F #2E33B9 #B92E78
square
#B9B42E #2EB96F #2E33B9 #B92E78
split-complementary
#B9B42E #2E78B9 #6F2EB9
monochromatic
#575516 #888422 #B9B42E #D4CF51 #E0DC82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B42E#FFFFFF#000000##000000
##B9B42E1.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)
#C3AD0F
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b42e;
/* rgb */ color: rgb(185, 180, 46);
/* oklch */ color: oklch(75.1% 0.147 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2ca71',
    500: '#b9b42e',
    950: '#000000',
  },
}
SCSS
$custom: #b9b42e;
$custom-light: #d2ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b42e",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 57.842,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75112,
    "c": 0.14718,
    "h": 107.3
  },
  "luminance": 0.43154
}

Semantic roles & 50–950 ramp

primary
#B9B42E
secondary
#7A7DC9
accent
#4AE344
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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