#978228#978228

#978228 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.9% C 0.109 H 95.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#978228
RGBrgb(151, 130, 40)
HSLhsl(49, 58%, 37%)
HSVhsv(49, 74%, 59%)
CMYKcmyk(0%, 13.9%, 73.5%, 40.8%)
CIE-LABlab(54.76, -2.11, 49.09)
CIE-LCHlch(54.76, 49.14, 92.47°)
OKLaboklab(60.93% -0.0107 0.1089)
OKLCHoklch(60.93% 0.109 95.6)
XYZxyz(21.1292, 22.6989, 5.2755)
Luminance0.2270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978228 #283D97
analogous
#974B28 #978228 #749728
triadic
#978228 #289782 #822897
tetradic
#978228 #28974B #283D97 #972874
square
#978228 #28974B #283D97 #972874
split-complementary
#978228 #287497 #4B2897
monochromatic
#362F0E #67581B #978228 #C7AC35 #D6C064

Accessibility & contrast

On white

3.79
#978228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#978228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978228
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978228#FFFFFF#000000##000000
##9782281.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1A
Deuteranopia (green-blind)
#95862D
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978228;
/* rgb */ color: rgb(151, 130, 40);
/* oklch */ color: oklch(60.9% 0.109 95.6);
Tailwind
colors: {
  custom: {
    50: '#b9a668',
    500: '#978228',
    950: '#000000',
  },
}
SCSS
$custom: #978228;
$custom-light: #b9a668;
$custom-dark: #000000;
JSON
{
  "hex": "#978228",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 48.649,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60933,
    "c": 0.10943,
    "h": 95.6
  },
  "luminance": 0.22698
}

Semantic roles & 50–950 ramp

primary
#978228
secondary
#5F71BC
accent
#64E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978228

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

Preview Lab → · Contrast checker → · Palette generator →

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