#B7B42D#B7B42D

#B7B42D is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.148 H 108.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#B7B42D
RGBrgb(183, 180, 45)
HSLhsl(59, 61%, 45%)
HSVhsv(59, 75%, 72%)
CMYKcmyk(0%, 1.6%, 75.4%, 28.2%)
CIE-LABlab(71.49, -14.25, 64.21)
CIE-LCHlch(71.49, 65.77, 102.52°)
OKLaboklab(74.93% -0.0462 0.1407)
OKLCHoklch(74.93% 0.148 108.2)
XYZxyz(36.3248, 42.9005, 8.8493)
Luminance0.4290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B42D #2D30B7
analogous
#B76F2D #B7B42D #75B72D
triadic
#B7B42D #2DB7B4 #B42DB7
tetradic
#B7B42D #2DB76F #2D30B7 #B72D75
square
#B7B42D #2DB76F #2D30B7 #B72D75
split-complementary
#B7B42D #2D75B7 #6F2DB7
monochromatic
#555315 #868421 #B7B42D #D3D14E #DFDD7F

Accessibility & contrast

On white

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

On black

9.58
#B7B42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B42D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B42D#FFFFFF#000000##000000
##B7B42D1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7b42d;
/* rgb */ color: rgb(183, 180, 45);
/* oklch */ color: oklch(74.9% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#d0ca71',
    500: '#b7b42d',
    950: '#000000',
  },
}
SCSS
$custom: #b7b42d;
$custom-light: #d0ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b42d",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 58.696,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74931,
    "c": 0.14806,
    "h": 108.2
  },
  "luminance": 0.42899
}

Semantic roles & 50–950 ramp

primary
#B7B42D
secondary
#7879C8
accent
#48E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B42D

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

Preview Lab → · Contrast checker → · Palette generator →

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