#B7B22D#B7B22D

#B7B22D 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#B7B22D
RGBrgb(183, 178, 45)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 75%, 72%)
CMYKcmyk(0%, 2.7%, 75.4%, 28.2%)
CIE-LABlab(70.94, -13.23, 63.70)
CIE-LCHlch(70.94, 65.06, 101.73°)
OKLaboklab(74.49% -0.0433 0.1396)
OKLCHoklch(74.49% 0.146 107.2)
XYZxyz(35.9239, 42.0988, 8.7157)
Luminance0.4210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B22D #2D32B7
analogous
#B76D2D #B7B22D #77B72D
triadic
#B7B22D #2DB7B2 #B22DB7
tetradic
#B7B22D #2DB76D #2D32B7 #B72D77
square
#B7B22D #2DB76D #2D32B7 #B72D77
split-complementary
#B7B22D #2D77B7 #6D2DB7
monochromatic
#555215 #868221 #B7B22D #D3CF4E #DFDC7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B22D#FFFFFF#000000##000000
##B7B22D1.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)
#C1AB0E
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b22d;
/* rgb */ color: rgb(183, 178, 45);
/* oklch */ color: oklch(74.5% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#d0c871',
    500: '#b7b22d',
    950: '#000000',
  },
}
SCSS
$custom: #b7b22d;
$custom-light: #d0c871;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b22d",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 45
  },
  "hsl": {
    "h": 57.826,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74494,
    "c": 0.14616,
    "h": 107.2
  },
  "luminance": 0.42098
}

Semantic roles & 50–950 ramp

primary
#B7B22D
secondary
#787BC8
accent
#4AE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B22D

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

Preview Lab → · Contrast checker → · Palette generator →

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