#98278D#98278D

#98278D is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.186 H 332.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#98278D
RGBrgb(152, 39, 141)
HSLhsl(306, 59%, 37%)
HSVhsv(306, 74%, 60%)
CMYKcmyk(0%, 74.3%, 7.2%, 40.4%)
CIE-LABlab(37.93, 57.20, -31.35)
CIE-LCHlch(37.93, 65.22, 331.28°)
OKLaboklab(48.95% 0.1644 -0.0861)
OKLCHoklch(48.95% 0.186 332.3)
XYZxyz(18.4822, 10.0511, 26.1608)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98278D #279832
analogous
#6B2798 #98278D #982754
triadic
#98278D #8D9827 #278D98
tetradic
#98278D #986B27 #279832 #275498
square
#98278D #986B27 #279832 #275498
split-complementary
#98278D #549827 #27986B
monochromatic
#370E33 #671B60 #98278D #C933BA #D763CC

Accessibility & contrast

On white

6.98
#98278D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#98278D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98278D
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98278D#FFFFFF#000000##FFFFFF
##98278D1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#9F3358
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #98278d;
/* rgb */ color: rgb(152, 39, 141);
/* oklch */ color: oklch(48.9% 0.186 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba6daf',
    500: '#98278d',
    950: '#000000',
  },
}
SCSS
$custom: #98278d;
$custom-light: #ba6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#98278d",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 305.841,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.18559,
    "h": 332.3
  },
  "luminance": 0.1005
}

Semantic roles & 50–950 ramp

primary
#98278D
secondary
#5EBC68
accent
#E25545
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #98278D

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

Preview Lab → · Contrast checker → · Palette generator →

#98278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva