#978E1F#978E1F

#978E1F is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.125 H 104.5°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#978E1F
RGBrgb(151, 142, 31)
HSLhsl(56, 66%, 36%)
HSVhsv(56, 79%, 59%)
CMYKcmyk(0%, 6%, 79.5%, 40.8%)
CIE-LABlab(58.06, -9.08, 55.48)
CIE-LCHlch(58.06, 56.22, 99.30°)
OKLaboklab(63.54% -0.0313 0.1207)
OKLCHoklch(63.54% 0.125 104.5)
XYZxyz(22.6838, 26.0252, 5.1246)
Luminance0.2602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E1F #1F2897
analogous
#97521F #978E1F #64971F
triadic
#978E1F #1F978E #8E1F97
tetradic
#978E1F #1F9752 #1F2897 #971F64
square
#978E1F #1F9752 #1F2897 #971F64
split-complementary
#978E1F #1F6497 #521F97
monochromatic
#312E0A #645E15 #978E1F #CABE29 #DCD254

Accessibility & contrast

On white

3.38
#978E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#978E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E1F
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E1F#FFFFFF#000000##000000
##978E1F1.003.386.206.20
#FFFFFF3.381.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8901
Deuteranopia (green-blind)
#9E8E28
Tritanopia (blue-blind)
#A38479
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e1f;
/* rgb */ color: rgb(151, 142, 31);
/* oklch */ color: oklch(63.5% 0.125 104.5);
Tailwind
colors: {
  custom: {
    50: '#b9ae65',
    500: '#978e1f',
    950: '#000000',
  },
}
SCSS
$custom: #978e1f;
$custom-light: #b9ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#978e1f",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 55.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63535,
    "c": 0.1247,
    "h": 104.5
  },
  "luminance": 0.26024
}

Semantic roles & 50–950 ramp

primary
#978E1F
secondary
#525BBF
accent
#4CE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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