#978D28#978D28

#978D28 is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.4% C 0.119 H 103.6°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#978D28
RGBrgb(151, 141, 40)
HSLhsl(55, 58%, 37%)
HSVhsv(55, 74%, 59%)
CMYKcmyk(0%, 6.6%, 73.5%, 40.8%)
CIE-LABlab(57.83, -8.15, 52.09)
CIE-LCHlch(57.83, 52.72, 98.89°)
OKLaboklab(63.37% -0.0278 0.1153)
OKLCHoklch(63.37% 0.119 103.6)
XYZxyz(22.6714, 25.7832, 5.7895)
Luminance0.2578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D28 #283297
analogous
#975628 #978D28 #699728
triadic
#978D28 #28978D #8D2897
tetradic
#978D28 #289756 #283297 #972869
square
#978D28 #289756 #283297 #972869
split-complementary
#978D28 #286997 #562897
monochromatic
#36330E #67601B #978D28 #C7BA35 #D6CC64

Accessibility & contrast

On white

3.41
#978D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#978D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D28
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D28#FFFFFF#000000##000000
##978D281.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8817
Deuteranopia (green-blind)
#9D8D2F
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d28;
/* rgb */ color: rgb(151, 141, 40);
/* oklch */ color: oklch(63.4% 0.119 103.6);
Tailwind
colors: {
  custom: {
    50: '#b9ae69',
    500: '#978d28',
    950: '#000000',
  },
}
SCSS
$custom: #978d28;
$custom-light: #b9ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#978d28",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 54.595,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63368,
    "c": 0.11856,
    "h": 103.6
  },
  "luminance": 0.25782
}

Semantic roles & 50–950 ramp

primary
#978D28
secondary
#5F68BC
accent
#54E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D28

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

Preview Lab → · Contrast checker → · Palette generator →

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