#918222#918222

#918222 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.3% C 0.113 H 100.0°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#918222
RGBrgb(145, 130, 34)
HSLhsl(52, 62%, 35%)
HSVhsv(52, 77%, 57%)
CMYKcmyk(0%, 10.3%, 76.6%, 43.1%)
CIE-LABlab(54.13, -5.16, 50.62)
CIE-LCHlch(54.13, 50.89, 95.82°)
OKLaboklab(60.29% -0.0196 0.1112)
OKLCHoklch(60.29% 0.113 100)
XYZxyz(19.9494, 22.1015, 4.7283)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#918222 #223191
analogous
#914B22 #918222 #689122
triadic
#918222 #229182 #822291
tetradic
#918222 #22914B #223191 #912268
square
#918222 #22914B #223191 #912268
split-complementary
#918222 #226891 #4B2291
monochromatic
#2E290B #5F5616 #918222 #C3AE2E #D7C656

Accessibility & contrast

On white

3.87
#918222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#918222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #918222
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##918222#FFFFFF#000000##000000
##9182221.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E10
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#9D7870
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #918222;
/* rgb */ color: rgb(145, 130, 34);
/* oklch */ color: oklch(60.3% 0.113 100.0);
Tailwind
colors: {
  custom: {
    50: '#b5a665',
    500: '#918222',
    950: '#000000',
  },
}
SCSS
$custom: #918222;
$custom-light: #b5a665;
$custom-dark: #000000;
JSON
{
  "hex": "#918222",
  "rgb": {
    "r": 145,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 51.892,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.11293,
    "h": 100
  },
  "luminance": 0.221
}

Semantic roles & 50–950 ramp

primary
#918222
secondary
#5362BB
accent
#59E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #918222

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

Preview Lab → · Contrast checker → · Palette generator →

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