#979222#979222

#979222 is a light, vivid yellow. Relative luminance 0.273; OKLCH L 64.5% C 0.127 H 106.8°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#979222
RGBrgb(151, 146, 34)
HSLhsl(57, 63%, 36%)
HSVhsv(57, 77%, 59%)
CMYKcmyk(0%, 3.3%, 77.5%, 40.8%)
CIE-LABlab(59.21, -11.11, 55.54)
CIE-LCHlch(59.21, 56.64, 101.31°)
OKLaboklab(64.45% -0.0367 0.1214)
OKLCHoklch(64.45% 0.127 106.8)
XYZxyz(23.3311, 27.2534, 5.5445)
Luminance0.2725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979222 #222797
analogous
#975822 #979222 #629722
triadic
#979222 #229792 #922297
tetradic
#979222 #229758 #222797 #972262
square
#979222 #229758 #222797 #972262
split-complementary
#979222 #226297 #582297
monochromatic
#33310C #656217 #979222 #C9C22D #DAD45A

Accessibility & contrast

On white

3.26
#979222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#979222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979222
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979222#FFFFFF#000000##000000
##9792221.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C06
Deuteranopia (green-blind)
#A1902B
Tritanopia (blue-blind)
#A2887D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #979222;
/* rgb */ color: rgb(151, 146, 34);
/* oklch */ color: oklch(64.5% 0.127 106.8);
Tailwind
colors: {
  custom: {
    50: '#b9b167',
    500: '#979222',
    950: '#000000',
  },
}
SCSS
$custom: #979222;
$custom-light: #b9b167;
$custom-dark: #000000;
JSON
{
  "hex": "#979222",
  "rgb": {
    "r": 151,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 57.436,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64454,
    "c": 0.12685,
    "h": 106.8
  },
  "luminance": 0.27253
}

Semantic roles & 50–950 ramp

primary
#979222
secondary
#575BBE
accent
#49E642
background
#FBFAF6
surface
#F7F5EB
border
#D0CFC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #979222

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

Preview Lab → · Contrast checker → · Palette generator →

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