#B7B42E#B7B42E

#B7B42E 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#B7B42E
RGBrgb(183, 180, 46)
HSLhsl(59, 60%, 45%)
HSVhsv(59, 75%, 72%)
CMYKcmyk(0%, 1.6%, 74.9%, 28.2%)
CIE-LABlab(71.49, -14.21, 63.88)
CIE-LCHlch(71.49, 65.45, 102.54°)
OKLaboklab(74.94% -0.046 0.1402)
OKLCHoklch(74.94% 0.148 108.2)
XYZxyz(36.3442, 42.9083, 8.9519)
Luminance0.4291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B42E #2E31B7
analogous
#B76F2E #B7B42E #76B72E
triadic
#B7B42E #2EB7B4 #B42EB7
tetradic
#B7B42E #2EB76F #2E31B7 #B72E76
square
#B7B42E #2EB76F #2E31B7 #B72E76
split-complementary
#B7B42E #2E76B7 #6F2EB7
monochromatic
#555415 #868422 #B7B42E #D3D04F #DFDD80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #b7b42e;
/* rgb */ color: rgb(183, 180, 46);
/* oklch */ color: oklch(74.9% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#d0ca71',
    500: '#b7b42e',
    950: '#000000',
  },
}
SCSS
$custom: #b7b42e;
$custom-light: #d0ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b42e",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 58.686,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74937,
    "c": 0.14752,
    "h": 108.2
  },
  "luminance": 0.42907
}

Semantic roles & 50–950 ramp

primary
#B7B42E
secondary
#797BC8
accent
#48E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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