#B8B22F#B8B22F

#B8B22F is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.145 H 106.7°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#B8B22F
RGBrgb(184, 178, 47)
HSLhsl(57, 59%, 45%)
HSVhsv(57, 74%, 72%)
CMYKcmyk(0%, 3.3%, 74.5%, 27.8%)
CIE-LABlab(71.03, -12.71, 63.15)
CIE-LCHlch(71.03, 64.42, 101.38°)
OKLaboklab(74.59% -0.0417 0.1388)
OKLCHoklch(74.59% 0.145 106.7)
XYZxyz(36.2021, 42.2377, 8.9345)
Luminance0.4224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B22F #2F35B8
analogous
#B86D2F #B8B22F #7AB82F
triadic
#B8B22F #2FB8B2 #B22FB8
tetradic
#B8B22F #2FB86D #2F35B8 #B82F7A
square
#B8B22F #2FB86D #2F35B8 #B82F7A
split-complementary
#B8B22F #2F7AB8 #6D2FB8
monochromatic
#575416 #878323 #B8B22F #D3CD52 #DFDB82

Accessibility & contrast

On white

2.22
#B8B22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#B8B22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B22F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B22F#FFFFFF#000000##000000
##B8B22F1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB13
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#C6A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b22f;
/* rgb */ color: rgb(184, 178, 47);
/* oklch */ color: oklch(74.6% 0.145 106.7);
Tailwind
colors: {
  custom: {
    50: '#d1c872',
    500: '#b8b22f',
    950: '#000000',
  },
}
SCSS
$custom: #b8b22f;
$custom-light: #d1c872;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b22f",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 47
  },
  "hsl": {
    "h": 57.372,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74594,
    "c": 0.1449,
    "h": 106.7
  },
  "luminance": 0.42236
}

Semantic roles & 50–950 ramp

primary
#B8B22F
secondary
#7B7EC8
accent
#4CE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B22F

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

Preview Lab → · Contrast checker → · Palette generator →

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