#978F2F#978F2F

#978F2F is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.9% C 0.116 H 104.5°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#978F2F
RGBrgb(151, 143, 47)
HSLhsl(55, 53%, 39%)
HSVhsv(55, 69%, 59%)
CMYKcmyk(0%, 5.3%, 68.9%, 40.8%)
CIE-LABlab(58.44, -8.85, 49.89)
CIE-LCHlch(58.44, 50.67, 100.06°)
OKLaboklab(63.87% -0.029 0.1119)
OKLCHoklch(63.87% 0.116 104.5)
XYZxyz(23.0990, 26.4303, 6.5736)
Luminance0.2643 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2F #2F3797
analogous
#975B2F #978F2F #6B972F
triadic
#978F2F #2F978F #8F2F97
tetradic
#978F2F #2F975B #2F3797 #972F6B
square
#978F2F #2F975B #2F3797 #972F6B
split-complementary
#978F2F #2F6B97 #5B2F97
monochromatic
#3A3712 #686320 #978F2F #C3B940 #D2CA6E

Accessibility & contrast

On white

3.34
#978F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#978F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F2F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F2F#FFFFFF#000000##000000
##978F2F1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A21
Deuteranopia (green-blind)
#9E8F35
Tritanopia (blue-blind)
#A2857C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2f;
/* rgb */ color: rgb(151, 143, 47);
/* oklch */ color: oklch(63.9% 0.116 104.5);
Tailwind
colors: {
  custom: {
    50: '#b9af6d',
    500: '#978f2f',
    950: '#000000',
  },
}
SCSS
$custom: #978f2f;
$custom-light: #b9af6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2f",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 55.385,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63871,
    "c": 0.11559,
    "h": 104.5
  },
  "luminance": 0.26429
}

Semantic roles & 50–950 ramp

primary
#978F2F
secondary
#686FB9
accent
#57DC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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