#978428#978428

#978428 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.111 H 97.2°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#978428
RGBrgb(151, 132, 40)
HSLhsl(50, 58%, 37%)
HSVhsv(50, 74%, 59%)
CMYKcmyk(0%, 12.6%, 73.5%, 40.8%)
CIE-LABlab(55.31, -3.22, 49.63)
CIE-LCHlch(55.31, 49.74, 93.72°)
OKLaboklab(61.37% -0.0138 0.1101)
OKLCHoklch(61.37% 0.111 97.2)
XYZxyz(21.3978, 23.2361, 5.3650)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978428 #283B97
analogous
#974D28 #978428 #729728
triadic
#978428 #289784 #842897
tetradic
#978428 #28974D #283B97 #972872
square
#978428 #28974D #283B97 #972872
split-complementary
#978428 #287297 #4D2897
monochromatic
#362F0E #675A1B #978428 #C7AE35 #D6C264

Accessibility & contrast

On white

3.72
#978428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#978428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978428
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978428#FFFFFF#000000##000000
##9784281.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928119
Deuteranopia (green-blind)
#97872E
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978428;
/* rgb */ color: rgb(151, 132, 40);
/* oklch */ color: oklch(61.4% 0.111 97.2);
Tailwind
colors: {
  custom: {
    50: '#b9a768',
    500: '#978428',
    950: '#000000',
  },
}
SCSS
$custom: #978428;
$custom-light: #b9a768;
$custom-dark: #000000;
JSON
{
  "hex": "#978428",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 49.73,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61372,
    "c": 0.11093,
    "h": 97.2
  },
  "luminance": 0.23235
}

Semantic roles & 50–950 ramp

primary
#978428
secondary
#5F6FBC
accent
#61E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978428

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

Preview Lab → · Contrast checker → · Palette generator →

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