#978C28#978C28

#978C28 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.118 H 102.9°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#978C28
RGBrgb(151, 140, 40)
HSLhsl(54, 58%, 37%)
HSVhsv(54, 74%, 59%)
CMYKcmyk(0%, 7.3%, 73.5%, 40.8%)
CIE-LABlab(57.55, -7.61, 51.81)
CIE-LCHlch(57.55, 52.37, 98.35°)
OKLaboklab(63.15% -0.0263 0.1147)
OKLCHoklch(63.15% 0.118 102.9)
XYZxyz(22.5246, 25.4896, 5.7406)
Luminance0.2549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C28 #283397
analogous
#975428 #978C28 #6B9728
triadic
#978C28 #28978C #8C2897
tetradic
#978C28 #289754 #283397 #97286B
square
#978C28 #289754 #283397 #97286B
split-complementary
#978C28 #286B97 #542897
monochromatic
#36320E #675F1B #978C28 #C7B935 #D6CB64

Accessibility & contrast

On white

3.44
#978C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#978C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C28
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C28#FFFFFF#000000##000000
##978C281.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998717
Deuteranopia (green-blind)
#9C8C2F
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c28;
/* rgb */ color: rgb(151, 140, 40);
/* oklch */ color: oklch(63.1% 0.118 102.9);
Tailwind
colors: {
  custom: {
    50: '#b9ad69',
    500: '#978c28',
    950: '#000000',
  },
}
SCSS
$custom: #978c28;
$custom-light: #b9ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#978c28",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 54.054,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63145,
    "c": 0.11765,
    "h": 102.9
  },
  "luminance": 0.25489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978C28

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

Preview Lab → · Contrast checker → · Palette generator →

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