#978E2D#978E2D

#978E2D is a light, moderate yellow. Relative luminance 0.261; OKLCH L 63.6% C 0.116 H 104.0°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#978E2D
RGBrgb(151, 142, 45)
HSLhsl(55, 54%, 38%)
HSVhsv(55, 70%, 59%)
CMYKcmyk(0%, 6%, 70.2%, 40.8%)
CIE-LABlab(58.15, -8.43, 50.42)
CIE-LCHlch(58.15, 51.12, 99.49°)
OKLaboklab(63.63% -0.028 0.1127)
OKLCHoklch(63.63% 0.116 104)
XYZxyz(22.9101, 26.1157, 6.3162)
Luminance0.2611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E2D #2D3697
analogous
#97592D #978E2D #6B972D
triadic
#978E2D #2D978E #8E2D97
tetradic
#978E2D #2D9759 #2D3697 #972D6B
square
#978E2D #2D9759 #2D3697 #972D6B
split-complementary
#978E2D #2D6B97 #592D97
monochromatic
#393511 #68621F #978E2D #C5B93C #D3CA6B

Accessibility & contrast

On white

3.37
#978E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#978E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E2D
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E2D#FFFFFF#000000##000000
##978E2D1.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891F
Deuteranopia (green-blind)
#9E8E33
Tritanopia (blue-blind)
#A2847B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e2d;
/* rgb */ color: rgb(151, 142, 45);
/* oklch */ color: oklch(63.6% 0.116 104.0);
Tailwind
colors: {
  custom: {
    50: '#b9ae6c',
    500: '#978e2d',
    950: '#000000',
  },
}
SCSS
$custom: #978e2d;
$custom-light: #b9ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#978e2d",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 54.906,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63631,
    "c": 0.11609,
    "h": 104
  },
  "luminance": 0.26115
}

Semantic roles & 50–950 ramp

primary
#978E2D
secondary
#666DBA
accent
#57DD4A
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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