#979D2E#979D2E

#979D2E is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.0% C 0.131 H 112.5°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#979D2E
RGBrgb(151, 157, 46)
HSLhsl(63, 55%, 40%)
HSVhsv(63, 71%, 62%)
CMYKcmyk(3.8%, 0%, 70.7%, 38.4%)
CIE-LABlab(62.42, -16.31, 54.27)
CIE-LCHlch(62.42, 56.67, 106.72°)
OKLaboklab(67.04% -0.0501 0.121)
OKLCHoklch(67.04% 0.131 112.5)
XYZxyz(25.3134, 30.8911, 7.2134)
Luminance0.3089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D2E #342E9D
analogous
#9D6B2E #979D2E #609D2E
triadic
#979D2E #2E979D #9D2E97
tetradic
#979D2E #2E9D6B #342E9D #9D2E60
square
#979D2E #2E9D6B #342E9D #9D2E60
split-complementary
#979D2E #2E609D #6B2E9D
monochromatic
#3C3E12 #696E20 #979D2E #C0C741 #D0D570

Accessibility & contrast

On white

2.93
#979D2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#979D2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D2E
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D2E#FFFFFF#000000##000000
##979D2E1.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9961C
Deuteranopia (green-blind)
#A99836
Tritanopia (blue-blind)
#A19387
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d2e;
/* rgb */ color: rgb(151, 157, 46);
/* oklch */ color: oklch(67.0% 0.131 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b96e',
    500: '#979d2e',
    950: '#000000',
  },
}
SCSS
$custom: #979d2e;
$custom-light: #b9b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#979d2e",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 46
  },
  "hsl": {
    "h": 63.243,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.67039,
    "c": 0.13092,
    "h": 112.5
  },
  "luminance": 0.30891
}

Semantic roles & 50–950 ramp

primary
#979D2E
secondary
#6F6ABD
accent
#4ADE52
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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