#978028#978028

#978028 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.5% C 0.108 H 94.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#978028
RGBrgb(151, 128, 40)
HSLhsl(48, 58%, 37%)
HSVhsv(48, 74%, 59%)
CMYKcmyk(0%, 15.2%, 73.5%, 40.8%)
CIE-LABlab(54.21, -1.00, 48.55)
CIE-LCHlch(54.21, 48.56, 91.18°)
OKLaboklab(60.5% -0.0075 0.1078)
OKLCHoklch(60.5% 0.108 94)
XYZxyz(20.8658, 22.1720, 5.1877)
Luminance0.2217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978028 #283F97
analogous
#974928 #978028 #769728
triadic
#978028 #289780 #802897
tetradic
#978028 #289749 #283F97 #972876
square
#978028 #289749 #283F97 #972876
split-complementary
#978028 #287697 #492897
monochromatic
#362E0E #67571B #978028 #C7A935 #D6BE64

Accessibility & contrast

On white

3.86
#978028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#978028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978028
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978028#FFFFFF#000000##000000
##9780281.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1B
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#A3766E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978028;
/* rgb */ color: rgb(151, 128, 40);
/* oklch */ color: oklch(60.5% 0.108 94.0);
Tailwind
colors: {
  custom: {
    50: '#b9a468',
    500: '#978028',
    950: '#000000',
  },
}
SCSS
$custom: #978028;
$custom-light: #b9a468;
$custom-dark: #000000;
JSON
{
  "hex": "#978028",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 47.568,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60497,
    "c": 0.10801,
    "h": 94
  },
  "luminance": 0.22171
}

Semantic roles & 50–950 ramp

primary
#978028
secondary
#5F72BC
accent
#67E146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978028

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

Preview Lab → · Contrast checker → · Palette generator →

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