#978F28#978F28

#978F28 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.120 H 104.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#978F28
RGBrgb(151, 143, 40)
HSLhsl(56, 58%, 37%)
HSVhsv(56, 74%, 59%)
CMYKcmyk(0%, 5.3%, 73.5%, 40.8%)
CIE-LABlab(58.39, -9.23, 52.63)
CIE-LCHlch(58.39, 53.44, 99.94°)
OKLaboklab(63.82% -0.0308 0.1164)
OKLCHoklch(63.82% 0.12 104.8)
XYZxyz(22.9689, 26.3783, 5.8887)
Luminance0.2638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F28 #283097
analogous
#975828 #978F28 #679728
triadic
#978F28 #28978F #8F2897
tetradic
#978F28 #289758 #283097 #972867
square
#978F28 #289758 #283097 #972867
split-complementary
#978F28 #286797 #582897
monochromatic
#36330E #67611B #978F28 #C7BD35 #D6CE64

Accessibility & contrast

On white

3.35
#978F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#978F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F28
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F28#FFFFFF#000000##000000
##978F281.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A16
Deuteranopia (green-blind)
#9F8E2F
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f28;
/* rgb */ color: rgb(151, 143, 40);
/* oklch */ color: oklch(63.8% 0.120 104.8);
Tailwind
colors: {
  custom: {
    50: '#b9af6a',
    500: '#978f28',
    950: '#000000',
  },
}
SCSS
$custom: #978f28;
$custom-light: #b9af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#978f28",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 55.676,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63817,
    "c": 0.12043,
    "h": 104.8
  },
  "luminance": 0.26377
}

Semantic roles & 50–950 ramp

primary
#978F28
secondary
#5F66BC
accent
#52E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F28

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

Preview Lab → · Contrast checker → · Palette generator →

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