#B9B42C#B9B42C

#B9B42C 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#B9B42C
RGBrgb(185, 180, 44)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.7%, 76.2%, 27.5%)
CIE-LABlab(71.65, -13.43, 64.74)
CIE-LCHlch(71.65, 66.12, 101.72°)
OKLaboklab(75.1% -0.0441 0.1416)
OKLCHoklch(75.1% 0.148 107.3)
XYZxyz(36.7850, 43.1399, 8.7716)
Luminance0.4314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B42C #2C31B9
analogous
#B96D2C #B9B42C #78B92C
triadic
#B9B42C #2CB9B4 #B42CB9
tetradic
#B9B42C #2CB96D #2C31B9 #B92C78
square
#B9B42C #2CB96D #2C31B9 #B92C78
split-complementary
#B9B42C #2C78B9 #6D2CB9
monochromatic
#565414 #888420 #B9B42C #D5D04D #E1DD7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B42C#FFFFFF#000000##000000
##B9B42C1.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)
#C4AD09
Deuteranopia (green-blind)
#C6B237
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b42c;
/* rgb */ color: rgb(185, 180, 44);
/* oklch */ color: oklch(75.1% 0.148 107.3);
Tailwind
colors: {
  custom: {
    50: '#d2ca70',
    500: '#b9b42c',
    950: '#000000',
  },
}
SCSS
$custom: #b9b42c;
$custom-light: #d2ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b42c",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 57.872,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.751,
    "c": 0.14825,
    "h": 107.3
  },
  "luminance": 0.43139
}

Semantic roles & 50–950 ramp

primary
#B9B42C
secondary
#787BC9
accent
#49E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B42C

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

Preview Lab → · Contrast checker → · Palette generator →

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