#978B27#978B27

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

Color values

HEX#978B27
RGBrgb(151, 139, 39)
HSLhsl(54, 59%, 37%)
HSVhsv(54, 74%, 59%)
CMYKcmyk(0%, 7.9%, 74.2%, 40.8%)
CIE-LABlab(57.26, -7.11, 51.92)
CIE-LCHlch(57.26, 52.41, 97.80°)
OKLaboklab(62.91% -0.025 0.1147)
OKLCHoklch(62.91% 0.117 102.3)
XYZxyz(22.3623, 25.1920, 5.6037)
Luminance0.2519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B27 #273397
analogous
#975327 #978B27 #6B9727
triadic
#978B27 #27978B #8B2797
tetradic
#978B27 #279753 #273397 #97276B
square
#978B27 #279753 #273397 #97276B
split-complementary
#978B27 #276B97 #532797
monochromatic
#36310E #665E1A #978B27 #C8B834 #D6CA62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978B27#FFFFFF#000000##000000
##978B271.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)
#988715
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b27;
/* rgb */ color: rgb(151, 139, 39);
/* oklch */ color: oklch(62.9% 0.117 102.3);
Tailwind
colors: {
  custom: {
    50: '#b9ac69',
    500: '#978b27',
    950: '#000000',
  },
}
SCSS
$custom: #978b27;
$custom-light: #b9ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#978b27",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 53.571,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62914,
    "c": 0.1174,
    "h": 102.3
  },
  "luminance": 0.25191
}

Semantic roles & 50–950 ramp

primary
#978B27
secondary
#5E68BC
accent
#56E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B27

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

Preview Lab → · Contrast checker → · Palette generator →

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