#978A28#978A28

#978A28 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.116 H 101.5°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A28
RGBrgb(151, 138, 40)
HSLhsl(53, 58%, 37%)
HSVhsv(53, 74%, 59%)
CMYKcmyk(0%, 8.6%, 73.5%, 40.8%)
CIE-LABlab(56.99, -6.52, 51.27)
CIE-LCHlch(56.99, 51.68, 97.25°)
OKLaboklab(62.7% -0.0232 0.1135)
OKLCHoklch(62.7% 0.116 101.5)
XYZxyz(22.2350, 24.9105, 5.6441)
Luminance0.2491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A28 #283597
analogous
#975328 #978A28 #6C9728
triadic
#978A28 #28978A #8A2897
tetradic
#978A28 #289753 #283597 #97286C
square
#978A28 #289753 #283597 #97286C
split-complementary
#978A28 #286C97 #532897
monochromatic
#36320E #675E1B #978A28 #C7B635 #D6C864

Accessibility & contrast

On white

3.51
#978A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A28
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A28#FFFFFF#000000##000000
##978A281.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978618
Deuteranopia (green-blind)
#9B8B2E
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a28;
/* rgb */ color: rgb(151, 138, 40);
/* oklch */ color: oklch(62.7% 0.116 101.5);
Tailwind
colors: {
  custom: {
    50: '#b9ab69',
    500: '#978a28',
    950: '#000000',
  },
}
SCSS
$custom: #978a28;
$custom-light: #b9ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#978a28",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 52.973,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62699,
    "c": 0.11586,
    "h": 101.5
  },
  "luminance": 0.24909
}

Semantic roles & 50–950 ramp

primary
#978A28
secondary
#5F6ABC
accent
#59E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978A28

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

Preview Lab → · Contrast checker → · Palette generator →

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