#979231#979231

#979231 is a light, moderate yellow. Relative luminance 0.274; OKLCH L 64.6% C 0.117 H 106.4°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#979231
RGBrgb(151, 146, 49)
HSLhsl(57, 51%, 39%)
HSVhsv(57, 68%, 59%)
CMYKcmyk(0%, 3.3%, 67.5%, 40.8%)
CIE-LABlab(59.31, -10.34, 49.93)
CIE-LCHlch(59.31, 51.00, 101.70°)
OKLaboklab(64.56% -0.033 0.1123)
OKLCHoklch(64.56% 0.117 106.4)
XYZxyz(23.5966, 27.3596, 6.9431)
Luminance0.2736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979231 #313697
analogous
#975F31 #979231 #699731
triadic
#979231 #319792 #923197
tetradic
#979231 #31975F #313697 #973169
square
#979231 #31975F #313697 #973169
split-complementary
#979231 #316997 #5F3197
monochromatic
#3B3913 #696522 #979231 #C2BC43 #D1CC71

Accessibility & contrast

On white

3.24
#979231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#979231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979231
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979231#FFFFFF#000000##000000
##9792311.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8D24
Deuteranopia (green-blind)
#A19137
Tritanopia (blue-blind)
#A2887E
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #979231;
/* rgb */ color: rgb(151, 146, 49);
/* oklch */ color: oklch(64.6% 0.117 106.4);
Tailwind
colors: {
  custom: {
    50: '#b8b16f',
    500: '#979231',
    950: '#000000',
  },
}
SCSS
$custom: #979231;
$custom-light: #b8b16f;
$custom-dark: #000000;
JSON
{
  "hex": "#979231",
  "rgb": {
    "r": 151,
    "g": 146,
    "b": 49
  },
  "hsl": {
    "h": 57.059,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64563,
    "c": 0.11708,
    "h": 106.4
  },
  "luminance": 0.27359
}

Semantic roles & 50–950 ramp

primary
#979231
secondary
#6B6FB9
accent
#54DA4D
background
#FBFAF6
surface
#F6F5EC
border
#D0CFC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #979231

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

Preview Lab → · Contrast checker → · Palette generator →

#979231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva