#978E31#978E31

#978E31 is a light, moderate yellow. Relative luminance 0.261; OKLCH L 63.7% C 0.113 H 103.8°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#978E31
RGBrgb(151, 142, 49)
HSLhsl(55, 51%, 39%)
HSVhsv(55, 68%, 59%)
CMYKcmyk(0%, 6%, 67.5%, 40.8%)
CIE-LABlab(58.18, -8.19, 48.77)
CIE-LCHlch(58.18, 49.45, 99.54°)
OKLaboklab(63.67% -0.0269 0.1099)
OKLCHoklch(63.67% 0.113 103.8)
XYZxyz(22.9908, 26.1479, 6.7412)
Luminance0.2615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E31 #313A97
analogous
#975B31 #978E31 #6D9731
triadic
#978E31 #31978E #8E3197
tetradic
#978E31 #31975B #313A97 #97316D
square
#978E31 #31975B #313A97 #97316D
split-complementary
#978E31 #316D97 #5B3197
monochromatic
#3B3713 #696322 #978E31 #C2B743 #D1C971

Accessibility & contrast

On white

3.37
#978E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#978E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E31
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E31#FFFFFF#000000##000000
##978E311.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8925
Deuteranopia (green-blind)
#9D8E37
Tritanopia (blue-blind)
#A2847B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e31;
/* rgb */ color: rgb(151, 142, 49);
/* oklch */ color: oklch(63.7% 0.113 103.8);
Tailwind
colors: {
  custom: {
    50: '#b8ae6e',
    500: '#978e31',
    950: '#000000',
  },
}
SCSS
$custom: #978e31;
$custom-light: #b8ae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#978e31",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 49
  },
  "hsl": {
    "h": 54.706,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63665,
    "c": 0.11312,
    "h": 103.8
  },
  "luminance": 0.26147
}

Semantic roles & 50–950 ramp

primary
#978E31
secondary
#6B72B9
accent
#5ADA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978E31

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

Preview Lab → · Contrast checker → · Palette generator →

#978E31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva