#978223#978223

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

Color values

HEX#978223
RGBrgb(151, 130, 35)
HSLhsl(49, 62%, 36%)
HSVhsv(49, 77%, 59%)
CMYKcmyk(0%, 13.9%, 76.8%, 40.8%)
CIE-LABlab(54.73, -2.35, 51.02)
CIE-LCHlch(54.73, 51.07, 92.64°)
OKLaboklab(60.9% -0.0119 0.112)
OKLCHoklch(60.9% 0.113 96.1)
XYZxyz(21.0496, 22.6671, 4.8562)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978223 #233897
analogous
#974823 #978223 #729723
triadic
#978223 #239782 #822397
tetradic
#978223 #239748 #233897 #972372
square
#978223 #239748 #233897 #972372
split-complementary
#978223 #237297 #482397
monochromatic
#342C0C #655717 #978223 #C9AD2F #D9C25B

Accessibility & contrast

On white

3.80
#978223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#978223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978223
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978223#FFFFFF#000000##000000
##9782231.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F11
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#A37770
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978223;
/* rgb */ color: rgb(151, 130, 35);
/* oklch */ color: oklch(60.9% 0.113 96.1);
Tailwind
colors: {
  custom: {
    50: '#b9a665',
    500: '#978223',
    950: '#000000',
  },
}
SCSS
$custom: #978223;
$custom-light: #b9a665;
$custom-dark: #000000;
JSON
{
  "hex": "#978223",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 49.138,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60896,
    "c": 0.11262,
    "h": 96.1
  },
  "luminance": 0.22666
}

Semantic roles & 50–950 ramp

primary
#978223
secondary
#586BBE
accent
#60E542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978223

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

Preview Lab → · Contrast checker → · Palette generator →

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