#979B2F#979B2F

#979B2F is a light, vivid yellow. Relative luminance 0.302; OKLCH L 66.6% C 0.128 H 111.5°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#979B2F
RGBrgb(151, 155, 47)
HSLhsl(62, 53%, 40%)
HSVhsv(62, 70%, 61%)
CMYKcmyk(2.6%, 0%, 69.7%, 39.2%)
CIE-LABlab(61.85, -15.21, 53.32)
CIE-LCHlch(61.85, 55.45, 105.92°)
OKLaboklab(66.59% -0.0469 0.1191)
OKLCHoklch(66.59% 0.128 111.5)
XYZxyz(24.9977, 30.2279, 7.2065)
Luminance0.3023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979B2F #332F9B
analogous
#9B692F #979B2F #619B2F
triadic
#979B2F #2F979B #9B2F97
tetradic
#979B2F #2F9B69 #332F9B #9B2F61
square
#979B2F #2F9B69 #332F9B #9B2F61
split-complementary
#979B2F #2F619B #692F9B
monochromatic
#3C3D13 #696C21 #979B2F #C1C642 #D0D471

Accessibility & contrast

On white

2.98
#979B2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#979B2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979B2F
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979B2F#FFFFFF#000000##000000
##979B2F1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7941E
Deuteranopia (green-blind)
#A89737
Tritanopia (blue-blind)
#A19186
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #979b2f;
/* rgb */ color: rgb(151, 155, 47);
/* oklch */ color: oklch(66.6% 0.128 111.5);
Tailwind
colors: {
  custom: {
    50: '#b9b86e',
    500: '#979b2f',
    950: '#000000',
  },
}
SCSS
$custom: #979b2f;
$custom-light: #b9b86e;
$custom-dark: #000000;
JSON
{
  "hex": "#979b2f",
  "rgb": {
    "r": 151,
    "g": 155,
    "b": 47
  },
  "hsl": {
    "h": 62.222,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.66589,
    "c": 0.12804,
    "h": 111.5
  },
  "luminance": 0.30227
}

Semantic roles & 50–950 ramp

primary
#979B2F
secondary
#6D6ABB
accent
#4BDD50
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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