#978F23#978F23

#978F23 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.123 H 105.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#978F23
RGBrgb(151, 143, 35)
HSLhsl(56, 62%, 36%)
HSVhsv(56, 77%, 59%)
CMYKcmyk(0%, 5.3%, 76.8%, 40.8%)
CIE-LABlab(58.36, -9.46, 54.42)
CIE-LCHlch(58.36, 55.24, 99.86°)
OKLaboklab(63.78% -0.032 0.1192)
OKLCHoklch(63.78% 0.123 105)
XYZxyz(22.8893, 26.3465, 5.4695)
Luminance0.2635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F23 #232B97
analogous
#975523 #978F23 #659723
triadic
#978F23 #23978F #8F2397
tetradic
#978F23 #239755 #232B97 #972365
square
#978F23 #239755 #232B97 #972365
split-complementary
#978F23 #236597 #552397
monochromatic
#34310C #656017 #978F23 #C9BE2F #D9D05B

Accessibility & contrast

On white

3.35
#978F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#978F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F23
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F23#FFFFFF#000000##000000
##978F231.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A0B
Deuteranopia (green-blind)
#9F8E2B
Tritanopia (blue-blind)
#A3857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f23;
/* rgb */ color: rgb(151, 143, 35);
/* oklch */ color: oklch(63.8% 0.123 105.0);
Tailwind
colors: {
  custom: {
    50: '#b9af67',
    500: '#978f23',
    950: '#000000',
  },
}
SCSS
$custom: #978f23;
$custom-light: #b9af67;
$custom-dark: #000000;
JSON
{
  "hex": "#978f23",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 55.862,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63783,
    "c": 0.12344,
    "h": 105
  },
  "luminance": 0.26346
}

Semantic roles & 50–950 ramp

primary
#978F23
secondary
#585FBE
accent
#4EE542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F23

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

Preview Lab → · Contrast checker → · Palette generator →

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