#978E20#978E20

#978E20 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.124 H 104.5°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#978E20
RGBrgb(151, 142, 32)
HSLhsl(55, 65%, 36%)
HSVhsv(55, 79%, 59%)
CMYKcmyk(0%, 6%, 78.8%, 40.8%)
CIE-LABlab(58.07, -9.05, 55.16)
CIE-LCHlch(58.07, 55.90, 99.31°)
OKLaboklab(63.54% -0.0311 0.1202)
OKLCHoklch(63.54% 0.124 104.5)
XYZxyz(22.6972, 26.0305, 5.1950)
Luminance0.2603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E20 #202997
analogous
#975220 #978E20 #649720
triadic
#978E20 #20978E #8E2097
tetradic
#978E20 #209752 #202997 #972064
square
#978E20 #209752 #202997 #972064
split-complementary
#978E20 #206497 #522097
monochromatic
#322F0B #645F15 #978E20 #C9BD2B #DBD156

Accessibility & contrast

On white

3.38
#978E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#978E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E20
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E20#FFFFFF#000000##000000
##978E201.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8903
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#A38479
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e20;
/* rgb */ color: rgb(151, 142, 32);
/* oklch */ color: oklch(63.5% 0.124 104.5);
Tailwind
colors: {
  custom: {
    50: '#b9ae66',
    500: '#978e20',
    950: '#000000',
  },
}
SCSS
$custom: #978e20;
$custom-light: #b9ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#978e20",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 55.462,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63541,
    "c": 0.12418,
    "h": 104.5
  },
  "luminance": 0.2603
}

Semantic roles & 50–950 ramp

primary
#978E20
secondary
#545CBF
accent
#4DE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978E20

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

Preview Lab → · Contrast checker → · Palette generator →

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