#979F2F#979F2F

#979F2F is a light, vivid yellow. Relative luminance 0.316; OKLCH L 67.5% C 0.132 H 113.4°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#979F2F
RGBrgb(151, 159, 47)
HSLhsl(64, 54%, 40%)
HSVhsv(64, 70%, 62%)
CMYKcmyk(5%, 0%, 70.4%, 37.6%)
CIE-LABlab(63.00, -17.28, 54.46)
CIE-LCHlch(63.00, 57.14, 107.61°)
OKLaboklab(67.51% -0.0527 0.1215)
OKLCHoklch(67.51% 0.132 113.4)
XYZxyz(25.6745, 31.5813, 7.4321)
Luminance0.3158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979F2F #372F9F
analogous
#9F6F2F #979F2F #5F9F2F
triadic
#979F2F #2F979F #9F2F97
tetradic
#979F2F #2F9F6F #372F9F #9F2F5F
square
#979F2F #2F9F6F #372F9F #9F2F5F
split-complementary
#979F2F #2F5F9F #6F2F9F
monochromatic
#3D4113 #6A7021 #979F2F #BEC844 #CFD673

Accessibility & contrast

On white

2.87
#979F2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#979F2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979F2F
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979F2F#FFFFFF#000000##000000
##979F2F1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB971D
Deuteranopia (green-blind)
#AB9A37
Tritanopia (blue-blind)
#A19589
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979f2f;
/* rgb */ color: rgb(151, 159, 47);
/* oklch */ color: oklch(67.5% 0.132 113.4);
Tailwind
colors: {
  custom: {
    50: '#b9bb6f',
    500: '#979f2f',
    950: '#000000',
  },
}
SCSS
$custom: #979f2f;
$custom-light: #b9bb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#979f2f",
  "rgb": {
    "r": 151,
    "g": 159,
    "b": 47
  },
  "hsl": {
    "h": 64.286,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.67506,
    "c": 0.13246,
    "h": 113.4
  },
  "luminance": 0.31581
}

Semantic roles & 50–950 ramp

primary
#979F2F
secondary
#726DBD
accent
#4ADE55
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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