#978B2F#978B2F

#978B2F is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.0% C 0.112 H 101.8°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#978B2F
RGBrgb(151, 139, 47)
HSLhsl(53, 53%, 39%)
HSVhsv(53, 69%, 59%)
CMYKcmyk(0%, 7.9%, 68.9%, 40.8%)
CIE-LABlab(57.32, -6.68, 48.74)
CIE-LCHlch(57.32, 49.20, 97.81°)
OKLaboklab(62.98% -0.0229 0.1095)
OKLCHoklch(62.98% 0.112 101.8)
XYZxyz(22.5092, 25.2507, 6.3770)
Luminance0.2525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2F #2F3B97
analogous
#97572F #978B2F #6F972F
triadic
#978B2F #2F978B #8B2F97
tetradic
#978B2F #2F9757 #2F3B97 #972F6F
square
#978B2F #2F9757 #2F3B97 #972F6F
split-complementary
#978B2F #2F6F97 #572F97
monochromatic
#3A3512 #686020 #978B2F #C3B440 #D2C76E

Accessibility & contrast

On white

3.47
#978B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#978B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B2F
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B2F#FFFFFF#000000##000000
##978B2F1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9B8C35
Tritanopia (blue-blind)
#A28178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b2f;
/* rgb */ color: rgb(151, 139, 47);
/* oklch */ color: oklch(63.0% 0.112 101.8);
Tailwind
colors: {
  custom: {
    50: '#b9ac6d',
    500: '#978b2f',
    950: '#000000',
  },
}
SCSS
$custom: #978b2f;
$custom-light: #b9ac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2f",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 53.077,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.62978,
    "c": 0.11184,
    "h": 101.8
  },
  "luminance": 0.2525
}

Semantic roles & 50–950 ramp

primary
#978B2F
secondary
#6872B9
accent
#5CDC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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