#978120#978120

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

Color values

HEX#978120
RGBrgb(151, 129, 32)
HSLhsl(49, 65%, 36%)
HSVhsv(49, 79%, 59%)
CMYKcmyk(0%, 14.6%, 78.8%, 40.8%)
CIE-LABlab(54.43, -1.92, 51.84)
CIE-LCHlch(54.43, 51.88, 92.13°)
OKLaboklab(60.66% -0.011 0.1131)
OKLCHoklch(60.66% 0.114 95.6)
XYZxyz(20.8746, 22.3853, 4.5875)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978120 #203697
analogous
#974620 #978120 #719720
triadic
#978120 #209781 #812097
tetradic
#978120 #209746 #203697 #972071
square
#978120 #209746 #203697 #972071
split-complementary
#978120 #207197 #462097
monochromatic
#322B0B #645615 #978120 #C9AC2B #DBC356

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978120#FFFFFF#000000##000000
##9781201.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)
#8F7E0B
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#A4766F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978120;
/* rgb */ color: rgb(151, 129, 32);
/* oklch */ color: oklch(60.7% 0.114 95.6);
Tailwind
colors: {
  custom: {
    50: '#b9a564',
    500: '#978120',
    950: '#000000',
  },
}
SCSS
$custom: #978120;
$custom-light: #b9a564;
$custom-dark: #000000;
JSON
{
  "hex": "#978120",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 32
  },
  "hsl": {
    "h": 48.908,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60658,
    "c": 0.11365,
    "h": 95.6
  },
  "luminance": 0.22384
}

Semantic roles & 50–950 ramp

primary
#978120
secondary
#5468BF
accent
#5FE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978120

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

Preview Lab → · Contrast checker → · Palette generator →

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