#978B28#978B28

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

Color values

HEX#978B28
RGBrgb(151, 139, 40)
HSLhsl(54, 58%, 37%)
HSVhsv(54, 74%, 59%)
CMYKcmyk(0%, 7.9%, 73.5%, 40.8%)
CIE-LABlab(57.27, -7.06, 51.54)
CIE-LCHlch(57.27, 52.02, 97.80°)
OKLaboklab(62.92% -0.0247 0.1141)
OKLCHoklch(62.92% 0.117 102.2)
XYZxyz(22.3791, 25.1987, 5.6921)
Luminance0.2520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B28 #283497
analogous
#975428 #978B28 #6B9728
triadic
#978B28 #28978B #8B2897
tetradic
#978B28 #289754 #283497 #97286B
square
#978B28 #289754 #283497 #97286B
split-complementary
#978B28 #286B97 #542897
monochromatic
#36320E #675E1B #978B28 #C7B835 #D6C964

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978B28#FFFFFF#000000##000000
##978B281.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)
#988717
Deuteranopia (green-blind)
#9C8C2F
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b28;
/* rgb */ color: rgb(151, 139, 40);
/* oklch */ color: oklch(62.9% 0.117 102.2);
Tailwind
colors: {
  custom: {
    50: '#b9ac69',
    500: '#978b28',
    950: '#000000',
  },
}
SCSS
$custom: #978b28;
$custom-light: #b9ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#978b28",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 53.514,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62921,
    "c": 0.11675,
    "h": 102.2
  },
  "luminance": 0.25198
}

Semantic roles & 50–950 ramp

primary
#978B28
secondary
#5F69BC
accent
#57E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B28

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

Preview Lab → · Contrast checker → · Palette generator →

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