#B7B42F#B7B42F

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

Color values

HEX#B7B42F
RGBrgb(183, 180, 47)
HSLhsl(59, 59%, 45%)
HSVhsv(59, 74%, 72%)
CMYKcmyk(0%, 1.6%, 74.3%, 28.2%)
CIE-LABlab(71.50, -14.17, 63.55)
CIE-LCHlch(71.50, 65.11, 102.57°)
OKLaboklab(74.94% -0.0458 0.1397)
OKLCHoklch(74.94% 0.147 108.2)
XYZxyz(36.3642, 42.9162, 9.0569)
Luminance0.4291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B42F #2F32B7
analogous
#B7702F #B7B42F #76B72F
triadic
#B7B42F #2FB7B4 #B42FB7
tetradic
#B7B42F #2FB770 #2F32B7 #B72F76
square
#B7B42F #2FB770 #2F32B7 #B72F76
split-complementary
#B7B42F #2F76B7 #702FB7
monochromatic
#565416 #868422 #B7B42F #D2CF51 #DFDD82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B42F#FFFFFF#000000##000000
##B7B42F1.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)
#C3AD12
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#C4A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b7b42f;
/* rgb */ color: rgb(183, 180, 47);
/* oklch */ color: oklch(74.9% 0.147 108.2);
Tailwind
colors: {
  custom: {
    50: '#d0ca72',
    500: '#b7b42f',
    950: '#000000',
  },
}
SCSS
$custom: #b7b42f;
$custom-light: #d0ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b42f",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 58.676,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74943,
    "c": 0.14696,
    "h": 108.2
  },
  "luminance": 0.42915
}

Semantic roles & 50–950 ramp

primary
#B7B42F
secondary
#7A7CC8
accent
#49E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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