#98278F#98278F

#98278F is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.187 H 331.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#98278F
RGBrgb(152, 39, 143)
HSLhsl(305, 59%, 37%)
HSVhsv(305, 74%, 60%)
CMYKcmyk(0%, 74.3%, 5.9%, 40.4%)
CIE-LABlab(38.04, 57.52, -32.40)
CIE-LCHlch(38.04, 66.02, 330.61°)
OKLaboklab(49.06% 0.1645 -0.0892)
OKLCHoklch(49.06% 0.187 331.5)
XYZxyz(18.6323, 10.1111, 26.9516)
Luminance0.1011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98278F #279830
analogous
#692798 #98278F #982756
triadic
#98278F #8F9827 #278F98
tetradic
#98278F #986927 #279830 #275698
square
#98278F #986927 #279830 #275698
split-complementary
#98278F #569827 #279869
monochromatic
#370E33 #671B61 #98278F #C933BD #D763CE

Accessibility & contrast

On white

6.95
#98278F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#98278F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98278F
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98278F#FFFFFF#000000##FFFFFF
##98278F1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4F92
Deuteranopia (green-blind)
#4B5F8C
Tritanopia (blue-blind)
#9E3459
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #98278f;
/* rgb */ color: rgb(152, 39, 143);
/* oklch */ color: oklch(49.1% 0.187 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba6db0',
    500: '#98278f',
    950: '#000000',
  },
}
SCSS
$custom: #98278f;
$custom-light: #ba6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#98278f",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 304.779,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49058,
    "c": 0.18711,
    "h": 331.5
  },
  "luminance": 0.1011
}

Semantic roles & 50–950 ramp

primary
#98278F
secondary
#5EBC66
accent
#E25245
background
#FBF7FA
surface
#F7EDF5
border
#D0C8CF
text
#120810
muted
#817B7F

Preview Lab

Preview with #98278F

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

Preview Lab → · Contrast checker → · Palette generator →

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