#978F27#978F27

#978F27 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.121 H 104.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#978F27
RGBrgb(151, 143, 39)
HSLhsl(56, 59%, 37%)
HSVhsv(56, 74%, 59%)
CMYKcmyk(0%, 5.3%, 74.2%, 40.8%)
CIE-LABlab(58.39, -9.28, 53.00)
CIE-LCHlch(58.39, 53.81, 99.93°)
OKLaboklab(63.81% -0.0311 0.117)
OKLCHoklch(63.81% 0.121 104.9)
XYZxyz(22.9521, 26.3716, 5.8003)
Luminance0.2637 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F27 #272F97
analogous
#975727 #978F27 #679727
triadic
#978F27 #27978F #8F2797
tetradic
#978F27 #279757 #272F97 #972767
square
#978F27 #279757 #272F97 #972767
split-complementary
#978F27 #276797 #572797
monochromatic
#36330E #66611A #978F27 #C8BD34 #D6CE62

Accessibility & contrast

On white

3.35
#978F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#978F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F27
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F27#FFFFFF#000000##000000
##978F271.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A14
Deuteranopia (green-blind)
#9F8E2E
Tritanopia (blue-blind)
#A3857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f27;
/* rgb */ color: rgb(151, 143, 39);
/* oklch */ color: oklch(63.8% 0.121 104.9);
Tailwind
colors: {
  custom: {
    50: '#b9af69',
    500: '#978f27',
    950: '#000000',
  },
}
SCSS
$custom: #978f27;
$custom-light: #b9af69;
$custom-dark: #000000;
JSON
{
  "hex": "#978f27",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 55.714,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6381,
    "c": 0.12106,
    "h": 104.9
  },
  "luminance": 0.26371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978F27

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

Preview Lab → · Contrast checker → · Palette generator →

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