#978E27#978E27

#978E27 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.6% C 0.120 H 104.2°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#978E27
RGBrgb(151, 142, 39)
HSLhsl(55, 59%, 37%)
HSVhsv(55, 74%, 59%)
CMYKcmyk(0%, 6%, 74.2%, 40.8%)
CIE-LABlab(58.11, -8.74, 52.73)
CIE-LCHlch(58.11, 53.45, 99.41°)
OKLaboklab(63.59% -0.0296 0.1164)
OKLCHoklch(63.59% 0.12 104.2)
XYZxyz(22.8027, 26.0727, 5.7505)
Luminance0.2607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E27 #273097
analogous
#975627 #978E27 #689727
triadic
#978E27 #27978E #8E2797
tetradic
#978E27 #279756 #273097 #972768
square
#978E27 #279756 #273097 #972768
split-complementary
#978E27 #276897 #562797
monochromatic
#36330E #66601A #978E27 #C8BC34 #D6CD62

Accessibility & contrast

On white

3.38
#978E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#978E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E27
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E27#FFFFFF#000000##000000
##978E271.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8914
Deuteranopia (green-blind)
#9E8E2E
Tritanopia (blue-blind)
#A3847A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e27;
/* rgb */ color: rgb(151, 142, 39);
/* oklch */ color: oklch(63.6% 0.120 104.2);
Tailwind
colors: {
  custom: {
    50: '#b9ae69',
    500: '#978e27',
    950: '#000000',
  },
}
SCSS
$custom: #978e27;
$custom-light: #b9ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#978e27",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 55.179,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63585,
    "c": 0.12011,
    "h": 104.2
  },
  "luminance": 0.26072
}

Semantic roles & 50–950 ramp

primary
#978E27
secondary
#5E65BC
accent
#52E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978E27

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

Preview Lab → · Contrast checker → · Palette generator →

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