#978122#978122

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

Color values

HEX#978122
RGBrgb(151, 129, 34)
HSLhsl(49, 63%, 36%)
HSVhsv(49, 77%, 59%)
CMYKcmyk(0%, 14.6%, 77.5%, 40.8%)
CIE-LABlab(54.45, -1.84, 51.13)
CIE-LCHlch(54.45, 51.16, 92.06°)
OKLaboklab(60.67% -0.0106 0.112)
OKLCHoklch(60.67% 0.113 95.4)
XYZxyz(20.9026, 22.3965, 4.7350)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978122 #223897
analogous
#974722 #978122 #739722
triadic
#978122 #229781 #812297
tetradic
#978122 #229747 #223897 #972273
square
#978122 #229747 #223897 #972273
split-complementary
#978122 #227397 #472297
monochromatic
#332C0C #655617 #978122 #C9AC2D #DAC25A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978122#FFFFFF#000000##000000
##9781221.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)
#8F7E10
Deuteranopia (green-blind)
#958528
Tritanopia (blue-blind)
#A4766F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978122;
/* rgb */ color: rgb(151, 129, 34);
/* oklch */ color: oklch(60.7% 0.113 95.4);
Tailwind
colors: {
  custom: {
    50: '#b9a565',
    500: '#978122',
    950: '#000000',
  },
}
SCSS
$custom: #978122;
$custom-light: #b9a565;
$custom-dark: #000000;
JSON
{
  "hex": "#978122",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 48.718,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60671,
    "c": 0.11251,
    "h": 95.4
  },
  "luminance": 0.22395
}

Semantic roles & 50–950 ramp

primary
#978122
secondary
#576ABE
accent
#61E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978122

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

Preview Lab → · Contrast checker → · Palette generator →

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