#978225#978225

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

Color values

HEX#978225
RGBrgb(151, 130, 37)
HSLhsl(49, 61%, 37%)
HSVhsv(49, 75%, 59%)
CMYKcmyk(0%, 13.9%, 75.5%, 40.8%)
CIE-LABlab(54.74, -2.26, 50.26)
CIE-LCHlch(54.74, 50.32, 92.57°)
OKLaboklab(60.91% -0.0114 0.1108)
OKLCHoklch(60.91% 0.111 95.9)
XYZxyz(21.0802, 22.6793, 5.0171)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978225 #253A97
analogous
#974925 #978225 #739725
triadic
#978225 #259782 #822597
tetradic
#978225 #259749 #253A97 #972573
square
#978225 #259749 #253A97 #972573
split-complementary
#978225 #257397 #492597
monochromatic
#352D0D #665819 #978225 #C8AC31 #D8C15F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978225#FFFFFF#000000##000000
##9782251.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)
#907F15
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978225;
/* rgb */ color: rgb(151, 130, 37);
/* oklch */ color: oklch(60.9% 0.111 95.9);
Tailwind
colors: {
  custom: {
    50: '#b9a666',
    500: '#978225',
    950: '#000000',
  },
}
SCSS
$custom: #978225;
$custom-light: #b9a666;
$custom-dark: #000000;
JSON
{
  "hex": "#978225",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 37
  },
  "hsl": {
    "h": 48.947,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60911,
    "c": 0.11139,
    "h": 95.9
  },
  "luminance": 0.22678
}

Semantic roles & 50–950 ramp

primary
#978225
secondary
#5B6DBD
accent
#61E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978225

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

Preview Lab → · Contrast checker → · Palette generator →

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