#978C27#978C27

#978C27 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.118 H 103.0°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#978C27
RGBrgb(151, 140, 39)
HSLhsl(54, 59%, 37%)
HSVhsv(54, 74%, 59%)
CMYKcmyk(0%, 7.3%, 74.2%, 40.8%)
CIE-LABlab(57.54, -7.66, 52.19)
CIE-LCHlch(57.54, 52.75, 98.35°)
OKLaboklab(63.14% -0.0265 0.1153)
OKLCHoklch(63.14% 0.118 103)
XYZxyz(22.5078, 25.4829, 5.6522)
Luminance0.2548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C27 #273297
analogous
#975427 #978C27 #6A9727
triadic
#978C27 #27978C #8C2797
tetradic
#978C27 #279754 #273297 #97276A
square
#978C27 #279754 #273297 #97276A
split-complementary
#978C27 #276A97 #542797
monochromatic
#36320E #665F1A #978C27 #C8B934 #D6CB62

Accessibility & contrast

On white

3.44
#978C27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#978C27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C27
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C27#FFFFFF#000000##000000
##978C271.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998715
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c27;
/* rgb */ color: rgb(151, 140, 39);
/* oklch */ color: oklch(63.1% 0.118 103.0);
Tailwind
colors: {
  custom: {
    50: '#b9ad69',
    500: '#978c27',
    950: '#000000',
  },
}
SCSS
$custom: #978c27;
$custom-light: #b9ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#978c27",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 39
  },
  "hsl": {
    "h": 54.107,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63137,
    "c": 0.11829,
    "h": 103
  },
  "luminance": 0.25482
}

Semantic roles & 50–950 ramp

primary
#978C27
secondary
#5E67BC
accent
#55E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C27

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

Preview Lab → · Contrast checker → · Palette generator →

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