#979E2B#979E2B

#979E2B is a light, vivid yellow. Relative luminance 0.312; OKLCH L 67.2% C 0.134 H 113.0°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#979E2B
RGBrgb(151, 158, 43)
HSLhsl(64, 57%, 39%)
HSVhsv(64, 73%, 62%)
CMYKcmyk(4.4%, 0%, 72.8%, 38%)
CIE-LABlab(62.68, -16.98, 55.66)
CIE-LCHlch(62.68, 58.19, 106.97°)
OKLaboklab(67.25% -0.0522 0.1234)
OKLCHoklch(67.25% 0.134 113)
XYZxyz(25.4262, 31.2080, 6.9694)
Luminance0.3121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E2B #322B9E
analogous
#9E6C2B #979E2B #5E9E2B
triadic
#979E2B #2B979E #9E2B97
tetradic
#979E2B #2B9E6C #322B9E #9E2B5E
square
#979E2B #2B9E6C #322B9E #9E2B5E
split-complementary
#979E2B #2B5E9E #6C2B9E
monochromatic
#3B3E11 #696E1E #979E2B #C1CA3C #D1D76C

Accessibility & contrast

On white

2.90
#979E2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#979E2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E2B
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E2B#FFFFFF#000000##000000
##979E2B1.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9616
Deuteranopia (green-blind)
#AA9934
Tritanopia (blue-blind)
#A19488
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979e2b;
/* rgb */ color: rgb(151, 158, 43);
/* oklch */ color: oklch(67.2% 0.134 113.0);
Tailwind
colors: {
  custom: {
    50: '#b9ba6d',
    500: '#979e2b',
    950: '#000000',
  },
}
SCSS
$custom: #979e2b;
$custom-light: #b9ba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#979e2b",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 43
  },
  "hsl": {
    "h": 63.652,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.67247,
    "c": 0.13396,
    "h": 113
  },
  "luminance": 0.31207
}

Semantic roles & 50–950 ramp

primary
#979E2B
secondary
#6C67BE
accent
#47E051
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979E2B

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

Preview Lab → · Contrast checker → · Palette generator →

#979E2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva