#978231#978231

#978231 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.0% C 0.103 H 94.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#978231
RGBrgb(151, 130, 49)
HSLhsl(48, 51%, 39%)
HSVhsv(48, 68%, 59%)
CMYKcmyk(0%, 13.9%, 67.5%, 40.8%)
CIE-LABlab(54.83, -1.60, 45.27)
CIE-LCHlch(54.83, 45.30, 92.03°)
OKLaboklab(61.01% -0.0081 0.1025)
OKLCHoklch(61.01% 0.103 94.5)
XYZxyz(21.3005, 22.7674, 6.1777)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978231 #314697
analogous
#974F31 #978231 #799731
triadic
#978231 #319782 #823197
tetradic
#978231 #31974F #314697 #973179
square
#978231 #31974F #314697 #973179
split-complementary
#978231 #317997 #4F3197
monochromatic
#3B3213 #695A22 #978231 #C2A843 #D1BD71

Accessibility & contrast

On white

3.78
#978231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#978231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978231
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978231#FFFFFF#000000##000000
##9782311.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F27
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#A37871
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978231;
/* rgb */ color: rgb(151, 130, 49);
/* oklch */ color: oklch(61.0% 0.103 94.5);
Tailwind
colors: {
  custom: {
    50: '#b9a66d',
    500: '#978231',
    950: '#000000',
  },
}
SCSS
$custom: #978231;
$custom-light: #b9a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#978231",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 47.647,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.61012,
    "c": 0.10279,
    "h": 94.5
  },
  "luminance": 0.22766
}

Semantic roles & 50–950 ramp

primary
#978231
secondary
#6B7BB9
accent
#6ADA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978231

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

Preview Lab → · Contrast checker → · Palette generator →

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