#978340#978340

#978340 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.090 H 93.0°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#978340
RGBrgb(151, 131, 64)
HSLhsl(46, 40%, 42%)
HSVhsv(46, 58%, 59%)
CMYKcmyk(0%, 13.2%, 57.6%, 40.8%)
CIE-LABlab(55.26, -1.07, 38.49)
CIE-LCHlch(55.26, 38.50, 91.59°)
OKLaboklab(61.4% -0.0047 0.0901)
OKLCHoklch(61.4% 0.09 93)
XYZxyz(21.8051, 23.1831, 8.1757)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978340 #405497
analogous
#975840 #978340 #809740
triadic
#978340 #409783 #834097
tetradic
#978340 #409758 #405497 #974080
square
#978340 #409758 #405497 #974080
split-complementary
#978340 #408097 #584097
monochromatic
#41381C #6C5E2E #978340 #B9A45B #CCBC86

Accessibility & contrast

On white

3.73
#978340 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#978340 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978340
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978340#FFFFFF#000000##000000
##9783401.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813A
Deuteranopia (green-blind)
#948743
Tritanopia (blue-blind)
#A27A74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978340;
/* rgb */ color: rgb(151, 131, 64);
/* oklch */ color: oklch(61.4% 0.090 93.0);
Tailwind
colors: {
  custom: {
    50: '#b8a677',
    500: '#978340',
    950: '#000000',
  },
}
SCSS
$custom: #978340;
$custom-light: #b8a677;
$custom-dark: #000000;
JSON
{
  "hex": "#978340",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 64
  },
  "hsl": {
    "h": 46.207,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.614,
    "c": 0.0902,
    "h": 93
  },
  "luminance": 0.23182
}

Semantic roles & 50–950 ramp

primary
#978340
secondary
#7D8AB6
accent
#73D057
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F09
muted
#817F7B

Preview Lab

Preview with #978340

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

Preview Lab → · Contrast checker → · Palette generator →

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