#B8B42D#B8B42D

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

Color values

HEX#B8B42D
RGBrgb(184, 180, 45)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 72%)
CMYKcmyk(0%, 2.2%, 75.5%, 27.8%)
CIE-LABlab(71.57, -13.82, 64.32)
CIE-LCHlch(71.57, 65.78, 102.13°)
OKLaboklab(75.02% -0.045 0.1409)
OKLCHoklch(75.02% 0.148 107.7)
XYZxyz(36.5635, 43.0236, 8.8605)
Luminance0.4302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B42D #2D31B8
analogous
#B86E2D #B8B42D #77B82D
triadic
#B8B42D #2DB8B4 #B42DB8
tetradic
#B8B42D #2DB86E #2D31B8 #B82D77
square
#B8B42D #2DB86E #2D31B8 #B82D77
split-complementary
#B8B42D #2D77B8 #6E2DB8
monochromatic
#565415 #878421 #B8B42D #D4D04E #E0DD80

Accessibility & contrast

On white

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

On black

9.60
#B8B42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B42D
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B42D#FFFFFF#000000##000000
##B8B42D1.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8b42d;
/* rgb */ color: rgb(184, 180, 45);
/* oklch */ color: oklch(75.0% 0.148 107.7);
Tailwind
colors: {
  custom: {
    50: '#d1ca71',
    500: '#b8b42d',
    950: '#000000',
  },
}
SCSS
$custom: #b8b42d;
$custom-light: #d1ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b42d",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 58.273,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75018,
    "c": 0.14789,
    "h": 107.7
  },
  "luminance": 0.43022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8B42D

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

Preview Lab → · Contrast checker → · Palette generator →

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