#979E20#979E20

#979E20 is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.2% C 0.140 H 112.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#979E20
RGBrgb(151, 158, 32)
HSLhsl(63, 66%, 37%)
HSVhsv(63, 80%, 62%)
CMYKcmyk(4.4%, 0%, 79.7%, 38%)
CIE-LABlab(62.62, -17.47, 59.26)
CIE-LCHlch(62.62, 61.78, 106.43°)
OKLaboklab(67.18% -0.0546 0.129)
OKLCHoklch(67.18% 0.14 112.9)
XYZxyz(25.2509, 31.1379, 6.0463)
Luminance0.3114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E20 #27209E
analogous
#9E6620 #979E20 #589E20
triadic
#979E20 #20979E #9E2097
tetradic
#979E20 #209E66 #27209E #9E2058
square
#979E20 #209E66 #27209E #9E2058
split-complementary
#979E20 #20589E #66209E
monochromatic
#36380B #666B16 #979E20 #C8D12A #D6DE5B

Accessibility & contrast

On white

2.91
#979E20 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#979E20 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E20
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E20#FFFFFF#000000##000000
##979E201.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#AB992C
Tritanopia (blue-blind)
#A29487
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979e20;
/* rgb */ color: rgb(151, 158, 32);
/* oklch */ color: oklch(67.2% 0.140 112.9);
Tailwind
colors: {
  custom: {
    50: '#b9ba68',
    500: '#979e20',
    950: '#000000',
  },
}
SCSS
$custom: #979e20;
$custom-light: #b9ba68;
$custom-dark: #000000;
JSON
{
  "hex": "#979e20",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 32
  },
  "hsl": {
    "h": 63.333,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.67181,
    "c": 0.14004,
    "h": 112.9
  },
  "luminance": 0.31137
}

Semantic roles & 50–950 ramp

primary
#979E20
secondary
#5E58C2
accent
#3FE948
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979E20

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

Preview Lab → · Contrast checker → · Palette generator →

#979E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva