#979C2E#979C2E

#979C2E is a light, vivid yellow. Relative luminance 0.306; OKLCH L 66.8% C 0.130 H 112.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#979C2E
RGBrgb(151, 156, 46)
HSLhsl(63, 54%, 40%)
HSVhsv(63, 71%, 61%)
CMYKcmyk(3.2%, 0%, 70.5%, 38.8%)
CIE-LABlab(62.13, -15.79, 53.99)
CIE-LCHlch(62.13, 56.25, 106.30°)
OKLaboklab(66.81% -0.0486 0.1204)
OKLCHoklch(66.81% 0.13 112)
XYZxyz(25.1449, 30.5541, 7.1572)
Luminance0.3055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979C2E #332E9C
analogous
#9C6A2E #979C2E #609C2E
triadic
#979C2E #2E979C #9C2E97
tetradic
#979C2E #2E9C6A #332E9C #9C2E60
square
#979C2E #2E9C6A #332E9C #9C2E60
split-complementary
#979C2E #2E609C #6A2E9C
monochromatic
#3C3D12 #696D20 #979C2E #C1C740 #D0D570

Accessibility & contrast

On white

2.95
#979C2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#979C2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979C2E
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979C2E#FFFFFF#000000##000000
##979C2E1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8951C
Deuteranopia (green-blind)
#A89736
Tritanopia (blue-blind)
#A19286
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #979c2e;
/* rgb */ color: rgb(151, 156, 46);
/* oklch */ color: oklch(66.8% 0.130 112.0);
Tailwind
colors: {
  custom: {
    50: '#b9b96e',
    500: '#979c2e',
    950: '#000000',
  },
}
SCSS
$custom: #979c2e;
$custom-light: #b9b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#979c2e",
  "rgb": {
    "r": 151,
    "g": 156,
    "b": 46
  },
  "hsl": {
    "h": 62.727,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6681,
    "c": 0.12981,
    "h": 112
  },
  "luminance": 0.30554
}

Semantic roles & 50–950 ramp

primary
#979C2E
secondary
#6D6ABC
accent
#4ADE51
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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