#978227#978227

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

Color values

HEX#978227
RGBrgb(151, 130, 39)
HSLhsl(49, 59%, 37%)
HSVhsv(49, 74%, 59%)
CMYKcmyk(0%, 13.9%, 74.2%, 40.8%)
CIE-LABlab(54.75, -2.16, 49.49)
CIE-LCHlch(54.75, 49.53, 92.50°)
OKLaboklab(60.93% -0.0109 0.1096)
OKLCHoklch(60.93% 0.11 95.7)
XYZxyz(21.1124, 22.6922, 5.1871)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978227 #273C97
analogous
#974A27 #978227 #749727
triadic
#978227 #279782 #822797
tetradic
#978227 #27974A #273C97 #972774
square
#978227 #27974A #273C97 #972774
split-complementary
#978227 #277497 #4A2797
monochromatic
#362E0E #66581A #978227 #C8AC34 #D6C162

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978227#FFFFFF#000000##000000
##9782271.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)
#907F18
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978227;
/* rgb */ color: rgb(151, 130, 39);
/* oklch */ color: oklch(60.9% 0.110 95.7);
Tailwind
colors: {
  custom: {
    50: '#b9a668',
    500: '#978227',
    950: '#000000',
  },
}
SCSS
$custom: #978227;
$custom-light: #b9a668;
$custom-dark: #000000;
JSON
{
  "hex": "#978227",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 48.75,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60925,
    "c": 0.11009,
    "h": 95.7
  },
  "luminance": 0.22691
}

Semantic roles & 50–950 ramp

primary
#978227
secondary
#5E6FBC
accent
#63E246
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978227

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

Preview Lab → · Contrast checker → · Palette generator →

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