#978127#978127

#978127 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.109 H 94.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#978127
RGBrgb(151, 129, 39)
HSLhsl(48, 59%, 37%)
HSVhsv(48, 74%, 59%)
CMYKcmyk(0%, 14.6%, 74.2%, 40.8%)
CIE-LABlab(54.48, -1.61, 49.22)
CIE-LCHlch(54.48, 49.24, 91.87°)
OKLaboklab(60.71% -0.0093 0.109)
OKLCHoklch(60.71% 0.109 94.9)
XYZxyz(20.9801, 22.4275, 5.1429)
Luminance0.2243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978127 #273D97
analogous
#974927 #978127 #759727
triadic
#978127 #279781 #812797
tetradic
#978127 #279749 #273D97 #972775
square
#978127 #279749 #273D97 #972775
split-complementary
#978127 #277597 #492797
monochromatic
#362E0E #66571A #978127 #C8AB34 #D6C062

Accessibility & contrast

On white

3.83
#978127 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#978127 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978127
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978127#FFFFFF#000000##000000
##9781271.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978127;
/* rgb */ color: rgb(151, 129, 39);
/* oklch */ color: oklch(60.7% 0.109 94.9);
Tailwind
colors: {
  custom: {
    50: '#b9a567',
    500: '#978127',
    950: '#000000',
  },
}
SCSS
$custom: #978127;
$custom-light: #b9a567;
$custom-dark: #000000;
JSON
{
  "hex": "#978127",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 39
  },
  "hsl": {
    "h": 48.214,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60707,
    "c": 0.10938,
    "h": 94.9
  },
  "luminance": 0.22426
}

Semantic roles & 50–950 ramp

primary
#978127
secondary
#5E70BC
accent
#64E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978127

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

Preview Lab → · Contrast checker → · Palette generator →

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