#978A23#978A23

#978A23 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.119 H 101.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A23
RGBrgb(151, 138, 35)
HSLhsl(53, 62%, 36%)
HSVhsv(53, 77%, 59%)
CMYKcmyk(0%, 8.6%, 76.8%, 40.8%)
CIE-LABlab(56.96, -6.75, 53.11)
CIE-LCHlch(56.96, 53.54, 97.25°)
OKLaboklab(62.66% -0.0244 0.1164)
OKLCHoklch(62.66% 0.119 101.8)
XYZxyz(22.1554, 24.8786, 5.2248)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A23 #233097
analogous
#975023 #978A23 #6A9723
triadic
#978A23 #23978A #8A2397
tetradic
#978A23 #239750 #233097 #97236A
square
#978A23 #239750 #233097 #97236A
split-complementary
#978A23 #236A97 #502397
monochromatic
#342F0C #655D17 #978A23 #C9B72F #D9CB5B

Accessibility & contrast

On white

3.51
#978A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A23
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A23#FFFFFF#000000##000000
##978A231.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860E
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a23;
/* rgb */ color: rgb(151, 138, 35);
/* oklch */ color: oklch(62.7% 0.119 101.8);
Tailwind
colors: {
  custom: {
    50: '#b9ab66',
    500: '#978a23',
    950: '#000000',
  },
}
SCSS
$custom: #978a23;
$custom-light: #b9ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#978a23",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 53.276,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62664,
    "c": 0.11896,
    "h": 101.8
  },
  "luminance": 0.24878
}

Semantic roles & 50–950 ramp

primary
#978A23
secondary
#5864BE
accent
#55E542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A23

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

Preview Lab → · Contrast checker → · Palette generator →

#978A23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva