#978A27#978A27

#978A27 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.117 H 101.6°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A27
RGBrgb(151, 138, 39)
HSLhsl(53, 59%, 37%)
HSVhsv(53, 74%, 59%)
CMYKcmyk(0%, 8.6%, 74.2%, 40.8%)
CIE-LABlab(56.98, -6.57, 51.65)
CIE-LCHlch(56.98, 52.07, 97.25°)
OKLaboklab(62.69% -0.0234 0.1141)
OKLCHoklch(62.69% 0.117 101.6)
XYZxyz(22.2182, 24.9037, 5.5556)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A27 #273497
analogous
#975227 #978A27 #6C9727
triadic
#978A27 #27978A #8A2797
tetradic
#978A27 #279752 #273497 #97276C
square
#978A27 #279752 #273497 #97276C
split-complementary
#978A27 #276C97 #522797
monochromatic
#36310E #665E1A #978A27 #C8B634 #D6C962

Accessibility & contrast

On white

3.51
#978A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A27
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A27#FFFFFF#000000##000000
##978A271.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978616
Deuteranopia (green-blind)
#9B8B2E
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a27;
/* rgb */ color: rgb(151, 138, 39);
/* oklch */ color: oklch(62.7% 0.117 101.6);
Tailwind
colors: {
  custom: {
    50: '#b9ab68',
    500: '#978a27',
    950: '#000000',
  },
}
SCSS
$custom: #978a27;
$custom-light: #b9ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#978a27",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 53.036,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62691,
    "c": 0.11651,
    "h": 101.6
  },
  "luminance": 0.24903
}

Semantic roles & 50–950 ramp

primary
#978A27
secondary
#5E69BC
accent
#58E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978A27

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

Preview Lab → · Contrast checker → · Palette generator →

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