#978242#978242

#978242 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.2% C 0.087 H 91.5°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#978242
RGBrgb(151, 130, 66)
HSLhsl(45, 39%, 43%)
HSVhsv(45, 56%, 59%)
CMYKcmyk(0%, 13.9%, 56.3%, 40.8%)
CIE-LABlab(55.01, -0.34, 37.17)
CIE-LCHlch(55.01, 37.17, 90.53°)
OKLaboklab(61.21% -0.0023 0.0874)
OKLCHoklch(61.21% 0.087 91.5)
XYZxyz(21.7294, 22.9390, 8.4363)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978242 #425797
analogous
#975742 #978242 #829742
triadic
#978242 #429782 #824297
tetradic
#978242 #429757 #425797 #974282
square
#978242 #429757 #425797 #974282
split-complementary
#978242 #428297 #574297
monochromatic
#42391D #6C5D2F #978242 #B8A25E #CBBB88

Accessibility & contrast

On white

3.76
#978242 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#978242 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978242
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978242#FFFFFF#000000##000000
##9782421.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803C
Deuteranopia (green-blind)
#938645
Tritanopia (blue-blind)
#A27973
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978242;
/* rgb */ color: rgb(151, 130, 66);
/* oklch */ color: oklch(61.2% 0.087 91.5);
Tailwind
colors: {
  custom: {
    50: '#b8a678',
    500: '#978242',
    950: '#000000',
  },
}
SCSS
$custom: #978242;
$custom-light: #b8a678;
$custom-dark: #000000;
JSON
{
  "hex": "#978242",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 66
  },
  "hsl": {
    "h": 45.176,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.61209,
    "c": 0.08747,
    "h": 91.5
  },
  "luminance": 0.22938
}

Semantic roles & 50–950 ramp

primary
#978242
secondary
#7F8CB6
accent
#76CF59
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#120F09
muted
#817F7B

Preview Lab

Preview with #978242

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

Preview Lab → · Contrast checker → · Palette generator →

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