#B7B22F#B7B22F

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

Color values

HEX#B7B22F
RGBrgb(183, 178, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 72%)
CMYKcmyk(0%, 2.7%, 74.3%, 28.2%)
CIE-LABlab(70.95, -13.14, 63.04)
CIE-LCHlch(70.95, 64.40, 101.78°)
OKLaboklab(74.51% -0.0429 0.1386)
OKLCHoklch(74.51% 0.145 107.2)
XYZxyz(35.9634, 42.1146, 8.9233)
Luminance0.4211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22F #2F34B7
analogous
#B76E2F #B7B22F #78B72F
triadic
#B7B22F #2FB7B2 #B22FB7
tetradic
#B7B22F #2FB76E #2F34B7 #B72F78
square
#B7B22F #2FB76E #2F34B7 #B72F78
split-complementary
#B7B22F #2F78B7 #6E2FB7
monochromatic
#565316 #868322 #B7B22F #D2CE51 #DFDB82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B22F#FFFFFF#000000##000000
##B7B22F1.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)
#C1AB13
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b22f;
/* rgb */ color: rgb(183, 178, 47);
/* oklch */ color: oklch(74.5% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#d0c872',
    500: '#b7b22f',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22f;
$custom-light: #d0c872;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22f",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 57.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74506,
    "c": 0.14506,
    "h": 107.2
  },
  "luminance": 0.42113
}

Semantic roles & 50–950 ramp

primary
#B7B22F
secondary
#7A7DC8
accent
#4BE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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