#978240#978240

#978240 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.2% C 0.089 H 92.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#978240
RGBrgb(151, 130, 64)
HSLhsl(46, 40%, 42%)
HSVhsv(46, 58%, 59%)
CMYKcmyk(0%, 13.9%, 57.6%, 40.8%)
CIE-LABlab(54.99, -0.51, 38.17)
CIE-LCHlch(54.99, 38.17, 90.77°)
OKLaboklab(61.18% -0.0031 0.0894)
OKLCHoklch(61.18% 0.089 92)
XYZxyz(21.6714, 22.9158, 8.1312)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978240 #405597
analogous
#975640 #978240 #819740
triadic
#978240 #409782 #824097
tetradic
#978240 #409756 #405597 #974081
square
#978240 #409756 #405597 #974081
split-complementary
#978240 #408197 #564097
monochromatic
#41381C #6C5D2E #978240 #B9A35B #CCBB86

Accessibility & contrast

On white

3.76
#978240 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#978240 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978240
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978240#FFFFFF#000000##000000
##9782401.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803A
Deuteranopia (green-blind)
#948643
Tritanopia (blue-blind)
#A27973
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978240;
/* rgb */ color: rgb(151, 130, 64);
/* oklch */ color: oklch(61.2% 0.089 92.0);
Tailwind
colors: {
  custom: {
    50: '#b8a677',
    500: '#978240',
    950: '#000000',
  },
}
SCSS
$custom: #978240;
$custom-light: #b8a677;
$custom-dark: #000000;
JSON
{
  "hex": "#978240",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 45.517,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.61183,
    "c": 0.08944,
    "h": 92
  },
  "luminance": 0.22915
}

Semantic roles & 50–950 ramp

primary
#978240
secondary
#7D8BB6
accent
#75D057
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F09
muted
#817F7B

Preview Lab

Preview with #978240

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

Preview Lab → · Contrast checker → · Palette generator →

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