#978D25#978D25

#978D25 is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.3% C 0.120 H 103.7°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#978D25
RGBrgb(151, 141, 37)
HSLhsl(55, 61%, 37%)
HSVhsv(55, 75%, 59%)
CMYKcmyk(0%, 6.6%, 75.5%, 40.8%)
CIE-LABlab(57.81, -8.29, 53.19)
CIE-LCHlch(57.81, 53.83, 98.86°)
OKLaboklab(63.35% -0.0285 0.117)
OKLCHoklch(63.35% 0.12 103.7)
XYZxyz(22.6223, 25.7636, 5.5312)
Luminance0.2576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D25 #252F97
analogous
#975425 #978D25 #689725
triadic
#978D25 #25978D #8D2597
tetradic
#978D25 #259754 #252F97 #972568
square
#978D25 #259754 #252F97 #972568
split-complementary
#978D25 #256897 #542597
monochromatic
#35310D #665F19 #978D25 #C8BB31 #D8CD5F

Accessibility & contrast

On white

3.41
#978D25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#978D25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D25
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D25#FFFFFF#000000##000000
##978D251.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8811
Deuteranopia (green-blind)
#9D8D2C
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d25;
/* rgb */ color: rgb(151, 141, 37);
/* oklch */ color: oklch(63.3% 0.120 103.7);
Tailwind
colors: {
  custom: {
    50: '#b9ae68',
    500: '#978d25',
    950: '#000000',
  },
}
SCSS
$custom: #978d25;
$custom-light: #b9ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#978d25",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 54.737,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63347,
    "c": 0.12043,
    "h": 103.7
  },
  "luminance": 0.25763
}

Semantic roles & 50–950 ramp

primary
#978D25
secondary
#5B64BD
accent
#52E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D25

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

Preview Lab → · Contrast checker → · Palette generator →

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