#B8B42F#B8B42F

#B8B42F is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.147 H 107.7°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#B8B42F
RGBrgb(184, 180, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 72%)
CMYKcmyk(0%, 2.2%, 74.5%, 27.8%)
CIE-LABlab(71.58, -13.74, 63.66)
CIE-LCHlch(71.58, 65.13, 102.18°)
OKLaboklab(75.03% -0.0446 0.1398)
OKLCHoklch(75.03% 0.147 107.7)
XYZxyz(36.6029, 43.0393, 9.0681)
Luminance0.4304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B42F #2F33B8
analogous
#B86F2F #B8B42F #78B82F
triadic
#B8B42F #2FB8B4 #B42FB8
tetradic
#B8B42F #2FB86F #2F33B8 #B82F78
square
#B8B42F #2FB86F #2F33B8 #B82F78
split-complementary
#B8B42F #2F78B8 #6F2FB8
monochromatic
#575516 #878423 #B8B42F #D3CF52 #DFDC82

Accessibility & contrast

On white

2.19
#B8B42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#B8B42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B42F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B42F#FFFFFF#000000##000000
##B8B42F1.002.199.619.61
#FFFFFF2.191.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b42f;
/* rgb */ color: rgb(184, 180, 47);
/* oklch */ color: oklch(75.0% 0.147 107.7);
Tailwind
colors: {
  custom: {
    50: '#d1ca72',
    500: '#b8b42f',
    950: '#000000',
  },
}
SCSS
$custom: #b8b42f;
$custom-light: #d1ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b42f",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 58.248,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7503,
    "c": 0.14679,
    "h": 107.7
  },
  "luminance": 0.43038
}

Semantic roles & 50–950 ramp

primary
#B8B42F
secondary
#7B7DC8
accent
#4AE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B8B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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