#978B23#978B23

#978B23 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.120 H 102.5°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B23
RGBrgb(151, 139, 35)
HSLhsl(54, 62%, 36%)
HSVhsv(54, 77%, 59%)
CMYKcmyk(0%, 7.9%, 76.8%, 40.8%)
CIE-LABlab(57.24, -7.30, 53.37)
CIE-LCHlch(57.24, 53.87, 97.79°)
OKLaboklab(62.89% -0.0259 0.117)
OKLCHoklch(62.89% 0.12 102.5)
XYZxyz(22.2995, 25.1669, 5.2729)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B23 #232F97
analogous
#975123 #978B23 #699723
triadic
#978B23 #23978B #8B2397
tetradic
#978B23 #239751 #232F97 #972369
square
#978B23 #239751 #232F97 #972369
split-complementary
#978B23 #236997 #512397
monochromatic
#34300C #655D17 #978B23 #C9B92F #D9CC5B

Accessibility & contrast

On white

3.48
#978B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B23
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B23#FFFFFF#000000##000000
##978B231.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860D
Deuteranopia (green-blind)
#9C8C2B
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b23;
/* rgb */ color: rgb(151, 139, 35);
/* oklch */ color: oklch(62.9% 0.120 102.5);
Tailwind
colors: {
  custom: {
    50: '#b9ac67',
    500: '#978b23',
    950: '#000000',
  },
}
SCSS
$custom: #978b23;
$custom-light: #b9ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#978b23",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 53.793,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62887,
    "c": 0.11983,
    "h": 102.5
  },
  "luminance": 0.25166
}

Semantic roles & 50–950 ramp

primary
#978B23
secondary
#5863BE
accent
#53E542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B23

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

Preview Lab → · Contrast checker → · Palette generator →

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