#B7B22C#B7B22C

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

Color values

HEX#B7B22C
RGBrgb(183, 178, 44)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 72%)
CMYKcmyk(0%, 2.7%, 76%, 28.2%)
CIE-LABlab(70.93, -13.27, 64.02)
CIE-LCHlch(70.93, 65.38, 101.71°)
OKLaboklab(74.49% -0.0435 0.1401)
OKLCHoklch(74.49% 0.147 107.3)
XYZxyz(35.9049, 42.0912, 8.6155)
Luminance0.4209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22C #2C31B7
analogous
#B76D2C #B7B22C #76B72C
triadic
#B7B22C #2CB7B2 #B22CB7
tetradic
#B7B22C #2CB76D #2C31B7 #B72C76
square
#B7B22C #2CB76D #2C31B7 #B72C76
split-complementary
#B7B22C #2C76B7 #6D2CB7
monochromatic
#545214 #868220 #B7B22C #D4CF4C #E0DC7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B22C#FFFFFF#000000##000000
##B7B22C1.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)
#C1AB0B
Deuteranopia (green-blind)
#C4B037
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b22c;
/* rgb */ color: rgb(183, 178, 44);
/* oklch */ color: oklch(74.5% 0.147 107.3);
Tailwind
colors: {
  custom: {
    50: '#d0c870',
    500: '#b7b22c',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22c;
$custom-light: #d0c870;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22c",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 44
  },
  "hsl": {
    "h": 57.842,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74488,
    "c": 0.1467,
    "h": 107.3
  },
  "luminance": 0.4209
}

Semantic roles & 50–950 ramp

primary
#B7B22C
secondary
#7679C8
accent
#49E443
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22C

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

Preview Lab → · Contrast checker → · Palette generator →

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