#979E2F#979E2F

#979E2F is a light, vivid yellow. Relative luminance 0.312; OKLCH L 67.3% C 0.131 H 113.0°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#979E2F
RGBrgb(151, 158, 47)
HSLhsl(64, 54%, 40%)
HSVhsv(64, 70%, 62%)
CMYKcmyk(4.4%, 0%, 70.3%, 38%)
CIE-LABlab(62.71, -16.77, 54.18)
CIE-LCHlch(62.71, 56.71, 107.20°)
OKLaboklab(67.28% -0.0513 0.1209)
OKLCHoklch(67.28% 0.131 113)
XYZxyz(25.5032, 31.2388, 7.3750)
Luminance0.3124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E2F #362F9E
analogous
#9E6E2F #979E2F #5F9E2F
triadic
#979E2F #2F979E #9E2F97
tetradic
#979E2F #2F9E6E #362F9E #9E2F5F
square
#979E2F #2F9E6E #362F9E #9E2F5F
split-complementary
#979E2F #2F5F9E #6E2F9E
monochromatic
#3D4013 #6A6F21 #979E2F #BFC743 #CFD572

Accessibility & contrast

On white

2.90
#979E2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#979E2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E2F
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E2F#FFFFFF#000000##000000
##979E2F1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA961D
Deuteranopia (green-blind)
#AA9937
Tritanopia (blue-blind)
#A19488
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979e2f;
/* rgb */ color: rgb(151, 158, 47);
/* oklch */ color: oklch(67.3% 0.131 113.0);
Tailwind
colors: {
  custom: {
    50: '#b9ba6f',
    500: '#979e2f',
    950: '#000000',
  },
}
SCSS
$custom: #979e2f;
$custom-light: #b9ba6f;
$custom-dark: #000000;
JSON
{
  "hex": "#979e2f",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 47
  },
  "hsl": {
    "h": 63.784,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.67276,
    "c": 0.13135,
    "h": 113
  },
  "luminance": 0.31238
}

Semantic roles & 50–950 ramp

primary
#979E2F
secondary
#716CBD
accent
#4ADE54
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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