#B7B22E#B7B22E

#B7B22E is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.146 H 107.2°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#B7B22E
RGBrgb(183, 178, 46)
HSLhsl(58, 60%, 45%)
HSVhsv(58, 75%, 72%)
CMYKcmyk(0%, 2.7%, 74.9%, 28.2%)
CIE-LABlab(70.94, -13.19, 63.37)
CIE-LCHlch(70.94, 64.73, 101.75°)
OKLaboklab(74.5% -0.0431 0.1391)
OKLCHoklch(74.5% 0.146 107.2)
XYZxyz(35.9434, 42.1066, 8.8183)
Luminance0.4210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22E #2E33B7
analogous
#B76D2E #B7B22E #78B72E
triadic
#B7B22E #2EB7B2 #B22EB7
tetradic
#B7B22E #2EB76D #2E33B7 #B72E78
square
#B7B22E #2EB76D #2E33B7 #B72E78
split-complementary
#B7B22E #2E78B7 #6D2EB7
monochromatic
#555315 #868222 #B7B22E #D3CE4F #DFDC80

Accessibility & contrast

On white

2.23
#B7B22E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#B7B22E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B22E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B22E#FFFFFF#000000##000000
##B7B22E1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB11
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b22e;
/* rgb */ color: rgb(183, 178, 46);
/* oklch */ color: oklch(74.5% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#d0c871',
    500: '#b7b22e',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22e;
$custom-light: #d0c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22e",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 46
  },
  "hsl": {
    "h": 57.81,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.745,
    "c": 0.14561,
    "h": 107.2
  },
  "luminance": 0.42105
}

Semantic roles & 50–950 ramp

primary
#B7B22E
secondary
#797CC8
accent
#4BE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22E

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

Preview Lab → · Contrast checker → · Palette generator →

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