#978B25#978B25

#978B25 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.119 H 102.4°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#978B25
RGBrgb(151, 139, 37)
HSLhsl(54, 61%, 37%)
HSVhsv(54, 75%, 59%)
CMYKcmyk(0%, 7.9%, 75.5%, 40.8%)
CIE-LABlab(57.25, -7.21, 52.66)
CIE-LCHlch(57.25, 53.15, 97.79°)
OKLaboklab(62.9% -0.0254 0.1159)
OKLCHoklch(62.9% 0.119 102.4)
XYZxyz(22.3301, 25.1791, 5.4337)
Luminance0.2518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B25 #253197
analogous
#975225 #978B25 #6A9725
triadic
#978B25 #25978B #8B2597
tetradic
#978B25 #259752 #253197 #97256A
square
#978B25 #259752 #253197 #97256A
split-complementary
#978B25 #256A97 #522597
monochromatic
#35310D #665E19 #978B25 #C8B831 #D8CB5F

Accessibility & contrast

On white

3.48
#978B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#978B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B25
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B25#FFFFFF#000000##000000
##978B251.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988612
Deuteranopia (green-blind)
#9C8C2C
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b25;
/* rgb */ color: rgb(151, 139, 37);
/* oklch */ color: oklch(62.9% 0.119 102.4);
Tailwind
colors: {
  custom: {
    50: '#b9ac68',
    500: '#978b25',
    950: '#000000',
  },
}
SCSS
$custom: #978b25;
$custom-light: #b9ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#978b25",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 53.684,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.629,
    "c": 0.11864,
    "h": 102.4
  },
  "luminance": 0.25178
}

Semantic roles & 50–950 ramp

primary
#978B25
secondary
#5B65BD
accent
#55E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B25

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

Preview Lab → · Contrast checker → · Palette generator →

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