#979E2C#979E2C

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

Color values

HEX#979E2C
RGBrgb(151, 158, 44)
HSLhsl(64, 56%, 40%)
HSVhsv(64, 72%, 62%)
CMYKcmyk(4.4%, 0%, 72.2%, 38%)
CIE-LABlab(62.69, -16.93, 55.29)
CIE-LCHlch(62.69, 57.83, 107.02°)
OKLaboklab(67.25% -0.052 0.1228)
OKLCHoklch(67.25% 0.133 113)
XYZxyz(25.4448, 31.2154, 7.0672)
Luminance0.3121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E2C #332C9E
analogous
#9E6C2C #979E2C #5E9E2C
triadic
#979E2C #2C979E #9E2C97
tetradic
#979E2C #2C9E6C #332C9E #9E2C5E
square
#979E2C #2C9E6C #332C9E #9E2C5E
split-complementary
#979E2C #2C5E9E #6C2C9E
monochromatic
#3C3E11 #696E1F #979E2C #C1C93E #D0D76E

Accessibility & contrast

On white

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

On black

7.24
#979E2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E2C
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E2C#FFFFFF#000000##000000
##979E2C1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #979e2c;
/* rgb */ color: rgb(151, 158, 44);
/* oklch */ color: oklch(67.3% 0.133 113.0);
Tailwind
colors: {
  custom: {
    50: '#b9ba6d',
    500: '#979e2c',
    950: '#000000',
  },
}
SCSS
$custom: #979e2c;
$custom-light: #b9ba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#979e2c",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 44
  },
  "hsl": {
    "h": 63.684,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.67254,
    "c": 0.13332,
    "h": 113
  },
  "luminance": 0.31215
}

Semantic roles & 50–950 ramp

primary
#979E2C
secondary
#6D68BE
accent
#48E051
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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