#978E28#978E28

#978E28 is a light, moderate yellow. Relative luminance 0.261; OKLCH L 63.6% C 0.119 H 104.2°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#978E28
RGBrgb(151, 142, 40)
HSLhsl(55, 58%, 37%)
HSVhsv(55, 74%, 59%)
CMYKcmyk(0%, 6%, 73.5%, 40.8%)
CIE-LABlab(58.11, -8.69, 52.36)
CIE-LCHlch(58.11, 53.08, 99.42°)
OKLaboklab(63.59% -0.0293 0.1158)
OKLCHoklch(63.59% 0.119 104.2)
XYZxyz(22.8195, 26.0794, 5.8389)
Luminance0.2608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E28 #283197
analogous
#975628 #978E28 #699728
triadic
#978E28 #28978E #8E2897
tetradic
#978E28 #289756 #283197 #972869
square
#978E28 #289756 #283197 #972869
split-complementary
#978E28 #286997 #562897
monochromatic
#36330E #67611B #978E28 #C7BB35 #D6CD64

Accessibility & contrast

On white

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

On black

6.22
#978E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E28
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E28#FFFFFF#000000##000000
##978E281.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8916
Deuteranopia (green-blind)
#9E8E2F
Tritanopia (blue-blind)
#A3847A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e28;
/* rgb */ color: rgb(151, 142, 40);
/* oklch */ color: oklch(63.6% 0.119 104.2);
Tailwind
colors: {
  custom: {
    50: '#b9ae69',
    500: '#978e28',
    950: '#000000',
  },
}
SCSS
$custom: #978e28;
$custom-light: #b9ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#978e28",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 55.135,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63592,
    "c": 0.11948,
    "h": 104.2
  },
  "luminance": 0.26079
}

Semantic roles & 50–950 ramp

primary
#978E28
secondary
#5F67BC
accent
#53E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978E28

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

Preview Lab → · Contrast checker → · Palette generator →

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