#978027#978027

#978027 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.5% C 0.109 H 94.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#978027
RGBrgb(151, 128, 39)
HSLhsl(48, 59%, 37%)
HSVhsv(48, 74%, 59%)
CMYKcmyk(0%, 15.2%, 74.2%, 40.8%)
CIE-LABlab(54.20, -1.05, 48.95)
CIE-LCHlch(54.20, 48.96, 91.23°)
OKLaboklab(60.49% -0.0078 0.1084)
OKLCHoklch(60.49% 0.109 94.1)
XYZxyz(20.8490, 22.1653, 5.0992)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978027 #273E97
analogous
#974827 #978027 #769727
triadic
#978027 #279780 #802797
tetradic
#978027 #279748 #273E97 #972776
square
#978027 #279748 #273E97 #972776
split-complementary
#978027 #277697 #482797
monochromatic
#362E0E #66571A #978027 #C8A934 #D6BF62

Accessibility & contrast

On white

3.87
#978027 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#978027 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978027
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978027#FFFFFF#000000##000000
##9780271.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E19
Deuteranopia (green-blind)
#94852C
Tritanopia (blue-blind)
#A3766E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978027;
/* rgb */ color: rgb(151, 128, 39);
/* oklch */ color: oklch(60.5% 0.109 94.1);
Tailwind
colors: {
  custom: {
    50: '#b9a467',
    500: '#978027',
    950: '#000000',
  },
}
SCSS
$custom: #978027;
$custom-light: #b9a467;
$custom-dark: #000000;
JSON
{
  "hex": "#978027",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 39
  },
  "hsl": {
    "h": 47.679,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60489,
    "c": 0.10869,
    "h": 94.1
  },
  "luminance": 0.22164
}

Semantic roles & 50–950 ramp

primary
#978027
secondary
#5E71BC
accent
#66E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978027

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

Preview Lab → · Contrast checker → · Palette generator →

#978027 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva