#979342#979342

#979342 is a light, moderate yellow. Relative luminance 0.278; OKLCH L 65.0% C 0.104 H 106.4°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#979342
RGBrgb(151, 147, 66)
HSLhsl(57, 39%, 43%)
HSVhsv(57, 56%, 59%)
CMYKcmyk(0%, 2.6%, 56.3%, 40.8%)
CIE-LABlab(59.74, -9.67, 42.66)
CIE-LCHlch(59.74, 43.74, 102.77°)
OKLaboklab(64.96% -0.0291 0.0993)
OKLCHoklch(64.96% 0.104 106.4)
XYZxyz(24.1803, 27.8408, 9.2533)
Luminance0.2784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979342 #424697
analogous
#976842 #979342 #719742
triadic
#979342 #429793 #934297
tetradic
#979342 #429768 #424697 #974271
square
#979342 #429768 #424697 #974271
split-complementary
#979342 #427197 #684297
monochromatic
#42401D #6C6A2F #979342 #B8B45E #CBC888

Accessibility & contrast

On white

3.20
#979342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#979342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979342
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979342#FFFFFF#000000##000000
##9793421.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8E3A
Deuteranopia (green-blind)
#A09246
Tritanopia (blue-blind)
#A18A81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #979342;
/* rgb */ color: rgb(151, 147, 66);
/* oklch */ color: oklch(65.0% 0.104 106.4);
Tailwind
colors: {
  custom: {
    50: '#b8b279',
    500: '#979342',
    950: '#000000',
  },
}
SCSS
$custom: #979342;
$custom-light: #b8b279;
$custom-dark: #000000;
JSON
{
  "hex": "#979342",
  "rgb": {
    "r": 151,
    "g": 147,
    "b": 66
  },
  "hsl": {
    "h": 57.176,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.64963,
    "c": 0.10351,
    "h": 106.4
  },
  "luminance": 0.2784
}

Semantic roles & 50–950 ramp

primary
#979342
secondary
#7F81B6
accent
#5ECF59
background
#FBFAF7
surface
#F6F5ED
border
#D0CFC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #979342

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

Preview Lab → · Contrast checker → · Palette generator →

#979342 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva