#978E37#978E37

#978E37 is a light, moderate yellow. Relative luminance 0.262; OKLCH L 63.7% C 0.108 H 103.4°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#978E37
RGBrgb(151, 142, 55)
HSLhsl(54, 47%, 40%)
HSVhsv(54, 64%, 59%)
CMYKcmyk(0%, 6%, 63.6%, 40.8%)
CIE-LABlab(58.23, -7.80, 46.17)
CIE-LCHlch(58.23, 46.82, 99.59°)
OKLaboklab(63.72% -0.0251 0.1053)
OKLCHoklch(63.72% 0.108 103.4)
XYZxyz(23.1259, 26.2020, 7.4530)
Luminance0.2620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E37 #374097
analogous
#975E37 #978E37 #709737
triadic
#978E37 #37978E #8E3797
tetradic
#978E37 #37975E #374097 #973770
square
#978E37 #37975E #374097 #973770
split-complementary
#978E37 #377097 #5E3797
monochromatic
#3D3A16 #6A6427 #978E37 #BEB44D #CFC77A

Accessibility & contrast

On white

3.37
#978E37 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#978E37 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E37
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E37#FFFFFF#000000##000000
##978E371.003.376.246.24
#FFFFFF3.371.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A892D
Deuteranopia (green-blind)
#9D8E3C
Tritanopia (blue-blind)
#A2857C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e37;
/* rgb */ color: rgb(151, 142, 55);
/* oklch */ color: oklch(63.7% 0.108 103.4);
Tailwind
colors: {
  custom: {
    50: '#b8ae72',
    500: '#978e37',
    950: '#000000',
  },
}
SCSS
$custom: #978e37;
$custom-light: #b8ae72;
$custom-dark: #000000;
JSON
{
  "hex": "#978e37",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 55
  },
  "hsl": {
    "h": 54.375,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.63722,
    "c": 0.10827,
    "h": 103.4
  },
  "luminance": 0.26201
}

Semantic roles & 50–950 ramp

primary
#978E37
secondary
#7279B8
accent
#5ED652
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #978E37

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

Preview Lab → · Contrast checker → · Palette generator →

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