#978126#978126

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

Color values

HEX#978126
RGBrgb(151, 129, 38)
HSLhsl(48, 60%, 37%)
HSVhsv(48, 75%, 59%)
CMYKcmyk(0%, 14.6%, 74.8%, 40.8%)
CIE-LABlab(54.47, -1.66, 49.61)
CIE-LCHlch(54.47, 49.64, 91.91°)
OKLaboklab(60.7% -0.0096 0.1096)
OKLCHoklch(60.7% 0.11 95)
XYZxyz(20.9637, 22.4209, 5.0568)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978126 #263C97
analogous
#974926 #978126 #749726
triadic
#978126 #269781 #812697
tetradic
#978126 #269749 #263C97 #972674
square
#978126 #269749 #263C97 #972674
split-complementary
#978126 #267497 #492697
monochromatic
#352D0D #66571A #978126 #C8AB32 #D7C060

Accessibility & contrast

On white

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

On black

5.48
#978126 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978126
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978126#FFFFFF#000000##000000
##9781261.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978126;
/* rgb */ color: rgb(151, 129, 38);
/* oklch */ color: oklch(60.7% 0.110 95.0);
Tailwind
colors: {
  custom: {
    50: '#b9a567',
    500: '#978126',
    950: '#000000',
  },
}
SCSS
$custom: #978126;
$custom-light: #b9a567;
$custom-dark: #000000;
JSON
{
  "hex": "#978126",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 48.319,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60699,
    "c": 0.11003,
    "h": 95
  },
  "luminance": 0.2242
}

Semantic roles & 50–950 ramp

primary
#978126
secondary
#5C6FBC
accent
#64E345
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978126

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

Preview Lab → · Contrast checker → · Palette generator →

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