#978333#978333

#978333 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.3% C 0.102 H 95.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#978333
RGBrgb(151, 131, 51)
HSLhsl(48, 50%, 40%)
HSVhsv(48, 66%, 59%)
CMYKcmyk(0%, 13.2%, 66.2%, 40.8%)
CIE-LABlab(55.13, -2.03, 44.67)
CIE-LCHlch(55.13, 44.71, 92.61°)
OKLaboklab(61.25% -0.0091 0.1015)
OKLCHoklch(61.25% 0.102 95.1)
XYZxyz(21.4773, 23.0520, 6.4495)
Luminance0.2305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978333 #334797
analogous
#975133 #978333 #799733
triadic
#978333 #339783 #833397
tetradic
#978333 #339751 #334797 #973379
square
#978333 #339751 #334797 #973379
split-complementary
#978333 #337997 #513397
monochromatic
#3C3414 #695B24 #978333 #C1A847 #D0BE74

Accessibility & contrast

On white

3.74
#978333 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#978333 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978333
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978333#FFFFFF#000000##000000
##9783331.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#90802A
Deuteranopia (green-blind)
#958737
Tritanopia (blue-blind)
#A37972
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978333;
/* rgb */ color: rgb(151, 131, 51);
/* oklch */ color: oklch(61.3% 0.102 95.1);
Tailwind
colors: {
  custom: {
    50: '#b9a66f',
    500: '#978333',
    950: '#000000',
  },
}
SCSS
$custom: #978333;
$custom-light: #b9a66f;
$custom-dark: #000000;
JSON
{
  "hex": "#978333",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 51
  },
  "hsl": {
    "h": 48,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6125,
    "c": 0.10193,
    "h": 95.1
  },
  "luminance": 0.23051
}

Semantic roles & 50–950 ramp

primary
#978333
secondary
#6D7CB8
accent
#6AD94F
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978333

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

Preview Lab → · Contrast checker → · Palette generator →

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