#978229#978229

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

Color values

HEX#978229
RGBrgb(151, 130, 41)
HSLhsl(49, 57%, 38%)
HSVhsv(49, 73%, 59%)
CMYKcmyk(0%, 13.9%, 72.8%, 40.8%)
CIE-LABlab(54.77, -2.06, 48.69)
CIE-LCHlch(54.77, 48.73, 92.43°)
OKLaboklab(60.94% -0.0104 0.1083)
OKLCHoklch(60.94% 0.109 95.5)
XYZxyz(21.1464, 22.7058, 5.3662)
Luminance0.2271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978229 #293E97
analogous
#974B29 #978229 #759729
triadic
#978229 #299782 #822997
tetradic
#978229 #29974B #293E97 #972975
square
#978229 #29974B #293E97 #972975
split-complementary
#978229 #297597 #4B2997
monochromatic
#372F0F #67591C #978229 #C7AB36 #D5C065

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978229#FFFFFF#000000##000000
##9782291.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)
#907F1C
Deuteranopia (green-blind)
#95862E
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978229;
/* rgb */ color: rgb(151, 130, 41);
/* oklch */ color: oklch(60.9% 0.109 95.5);
Tailwind
colors: {
  custom: {
    50: '#b9a669',
    500: '#978229',
    950: '#000000',
  },
}
SCSS
$custom: #978229;
$custom-light: #b9a669;
$custom-dark: #000000;
JSON
{
  "hex": "#978229",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 48.545,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.60941,
    "c": 0.10875,
    "h": 95.5
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#978229
secondary
#6172BB
accent
#65E147
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978229

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

Preview Lab → · Contrast checker → · Palette generator →

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