#978F25#978F25

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

Color values

HEX#978F25
RGBrgb(151, 143, 37)
HSLhsl(56, 61%, 37%)
HSVhsv(56, 75%, 59%)
CMYKcmyk(0%, 5.3%, 75.5%, 40.8%)
CIE-LABlab(58.38, -9.37, 53.72)
CIE-LCHlch(58.38, 54.53, 99.89°)
OKLaboklab(63.8% -0.0315 0.1181)
OKLCHoklch(63.8% 0.122 104.9)
XYZxyz(22.9199, 26.3587, 5.6303)
Luminance0.2636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F25 #252D97
analogous
#975625 #978F25 #669725
triadic
#978F25 #25978F #8F2597
tetradic
#978F25 #259756 #252D97 #972566
square
#978F25 #259756 #252D97 #972566
split-complementary
#978F25 #256697 #562597
monochromatic
#35320D #666019 #978F25 #C8BE31 #D8CF5F

Accessibility & contrast

On white

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

On black

6.27
#978F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F25
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F25#FFFFFF#000000##000000
##978F251.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A10
Deuteranopia (green-blind)
#9F8E2D
Tritanopia (blue-blind)
#A3857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f25;
/* rgb */ color: rgb(151, 143, 37);
/* oklch */ color: oklch(63.8% 0.122 104.9);
Tailwind
colors: {
  custom: {
    50: '#b9af68',
    500: '#978f25',
    950: '#000000',
  },
}
SCSS
$custom: #978f25;
$custom-light: #b9af68;
$custom-dark: #000000;
JSON
{
  "hex": "#978f25",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 37
  },
  "hsl": {
    "h": 55.789,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63796,
    "c": 0.12228,
    "h": 104.9
  },
  "luminance": 0.26358
}

Semantic roles & 50–950 ramp

primary
#978F25
secondary
#5B62BD
accent
#4FE444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F25

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

Preview Lab → · Contrast checker → · Palette generator →

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