#979F12#979F12

#979F12 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.4% C 0.146 H 113.3°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#979F12
RGBrgb(151, 159, 18)
HSLhsl(63, 80%, 35%)
HSVhsv(63, 89%, 62%)
CMYKcmyk(5%, 0%, 88.7%, 37.6%)
CIE-LABlab(62.86, -18.40, 62.92)
CIE-LCHlch(62.86, 65.55, 106.31°)
OKLaboklab(67.36% -0.058 0.1345)
OKLCHoklch(67.36% 0.147 113.3)
XYZxyz(25.2707, 31.4198, 5.3056)
Luminance0.3142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979F12 #1A129F
analogous
#9F6012 #979F12 #519F12
triadic
#979F12 #12979F #9F1297
tetradic
#979F12 #129F60 #1A129F #9F1251
square
#979F12 #129F60 #1A129F #9F1251
split-complementary
#979F12 #12519F #60129F
monochromatic
#2F3106 #63680C #979F12 #CBD618 #E0EA42

Accessibility & contrast

On white

2.88
#979F12 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#979F12 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979F12
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979F12#FFFFFF#000000##000000
##979F121.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9700
Deuteranopia (green-blind)
#AC9923
Tritanopia (blue-blind)
#A29587
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979f12;
/* rgb */ color: rgb(151, 159, 18);
/* oklch */ color: oklch(67.4% 0.146 113.3);
Tailwind
colors: {
  custom: {
    50: '#babb63',
    500: '#979f12',
    950: '#000000',
  },
}
SCSS
$custom: #979f12;
$custom-light: #babb63;
$custom-dark: #000000;
JSON
{
  "hex": "#979f12",
  "rgb": {
    "r": 151,
    "g": 159,
    "b": 18
  },
  "hsl": {
    "h": 63.404,
    "s": 79.661,
    "l": 34.706
  },
  "oklch": {
    "l": 0.67355,
    "c": 0.1465,
    "h": 113.3
  },
  "luminance": 0.31419
}

Semantic roles & 50–950 ramp

primary
#979F12
secondary
#4B43CA
accent
#32F63D
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979F12

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

Preview Lab → · Contrast checker → · Palette generator →

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