#978727#978727

#978727 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.0% C 0.114 H 99.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#978727
RGBrgb(151, 135, 39)
HSLhsl(51, 59%, 37%)
HSVhsv(51, 74%, 59%)
CMYKcmyk(0%, 10.6%, 74.2%, 40.8%)
CIE-LABlab(56.14, -4.93, 50.84)
CIE-LCHlch(56.14, 51.08, 95.54°)
OKLaboklab(62.03% -0.0188 0.1124)
OKLCHoklch(62.03% 0.114 99.5)
XYZxyz(21.7937, 24.0548, 5.4142)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978727 #273797
analogous
#974F27 #978727 #6F9727
triadic
#978727 #279787 #872797
tetradic
#978727 #27974F #273797 #97276F
square
#978727 #27974F #273797 #97276F
split-complementary
#978727 #276F97 #4F2797
monochromatic
#36300E #665C1A #978727 #C8B234 #D6C662

Accessibility & contrast

On white

3.61
#978727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#978727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978727
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978727#FFFFFF#000000##000000
##9787271.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948317
Deuteranopia (green-blind)
#99892D
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978727;
/* rgb */ color: rgb(151, 135, 39);
/* oklch */ color: oklch(62.0% 0.114 99.5);
Tailwind
colors: {
  custom: {
    50: '#b9a968',
    500: '#978727',
    950: '#000000',
  },
}
SCSS
$custom: #978727;
$custom-light: #b9a968;
$custom-dark: #000000;
JSON
{
  "hex": "#978727",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 51.429,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62026,
    "c": 0.11398,
    "h": 99.5
  },
  "luminance": 0.24054
}

Semantic roles & 50–950 ramp

primary
#978727
secondary
#5E6BBC
accent
#5CE246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978727

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

Preview Lab → · Contrast checker → · Palette generator →

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