#978E2F#978E2F

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

Color values

HEX#978E2F
RGBrgb(151, 142, 47)
HSLhsl(55, 53%, 39%)
HSVhsv(55, 69%, 59%)
CMYKcmyk(0%, 6%, 68.9%, 40.8%)
CIE-LABlab(58.16, -8.31, 49.60)
CIE-LCHlch(58.16, 50.30, 99.51°)
OKLaboklab(63.65% -0.0275 0.1113)
OKLCHoklch(63.65% 0.115 103.9)
XYZxyz(22.9495, 26.1314, 6.5238)
Luminance0.2613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E2F #2F3897
analogous
#975A2F #978E2F #6C972F
triadic
#978E2F #2F978E #8E2F97
tetradic
#978E2F #2F975A #2F3897 #972F6C
square
#978E2F #2F975A #2F3897 #972F6C
split-complementary
#978E2F #2F6C97 #5A2F97
monochromatic
#3A3612 #686220 #978E2F #C3B840 #D2C96E

Accessibility & contrast

On white

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

On black

6.23
#978E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E2F
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E2F#FFFFFF#000000##000000
##978E2F1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978e2f;
/* rgb */ color: rgb(151, 142, 47);
/* oklch */ color: oklch(63.6% 0.115 103.9);
Tailwind
colors: {
  custom: {
    50: '#b9ae6d',
    500: '#978e2f',
    950: '#000000',
  },
}
SCSS
$custom: #978e2f;
$custom-light: #b9ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#978e2f",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 54.808,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63647,
    "c": 0.11463,
    "h": 103.9
  },
  "luminance": 0.26131
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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