#B8B42C#B8B42C

#B8B42C 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#B8B42C
RGBrgb(184, 180, 44)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 72%)
CMYKcmyk(0%, 2.2%, 76.1%, 27.8%)
CIE-LABlab(71.57, -13.86, 64.63)
CIE-LCHlch(71.57, 66.10, 102.10°)
OKLaboklab(75.01% -0.0452 0.1414)
OKLCHoklch(75.01% 0.148 107.7)
XYZxyz(36.5445, 43.0160, 8.7603)
Luminance0.4301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B42C #2C30B8
analogous
#B86E2C #B8B42C #76B82C
triadic
#B8B42C #2CB8B4 #B42CB8
tetradic
#B8B42C #2CB86E #2C30B8 #B82C76
square
#B8B42C #2CB86E #2C30B8 #B82C76
split-complementary
#B8B42C #2C76B8 #6E2CB8
monochromatic
#555314 #878420 #B8B42C #D4D14D #E0DD7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B42C#FFFFFF#000000##000000
##B8B42C1.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)
#C3AD09
Deuteranopia (green-blind)
#C6B137
Tritanopia (blue-blind)
#C6A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b42c;
/* rgb */ color: rgb(184, 180, 44);
/* oklch */ color: oklch(75.0% 0.148 107.7);
Tailwind
colors: {
  custom: {
    50: '#d1ca70',
    500: '#b8b42c',
    950: '#000000',
  },
}
SCSS
$custom: #b8b42c;
$custom-light: #d1ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b42c",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 44
  },
  "hsl": {
    "h": 58.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75013,
    "c": 0.14842,
    "h": 107.7
  },
  "luminance": 0.43015
}

Semantic roles & 50–950 ramp

primary
#B8B42C
secondary
#7779C9
accent
#48E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B42C

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

Preview Lab → · Contrast checker → · Palette generator →

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