#98278B#98278B

#98278B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.184 H 333.2°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#98278B
RGBrgb(152, 39, 139)
HSLhsl(307, 59%, 37%)
HSVhsv(307, 74%, 60%)
CMYKcmyk(0%, 74.3%, 8.6%, 40.4%)
CIE-LABlab(37.83, 56.88, -30.28)
CIE-LCHlch(37.83, 64.44, 331.97°)
OKLaboklab(48.84% 0.1643 -0.0831)
OKLCHoklch(48.84% 0.184 333.2)
XYZxyz(18.3347, 9.9921, 25.3841)
Luminance0.0999 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98278B #279834
analogous
#6D2798 #98278B #982752
triadic
#98278B #8B9827 #278B98
tetradic
#98278B #986D27 #279834 #275298
square
#98278B #986D27 #279834 #275298
split-complementary
#98278B #529827 #27986D
monochromatic
#370E32 #671B5E #98278B #C933B8 #D763C9

Accessibility & contrast

On white

7.00
#98278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#98278B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98278B
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98278B#FFFFFF#000000##FFFFFF
##98278B1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#9F3256
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #98278b;
/* rgb */ color: rgb(152, 39, 139);
/* oklch */ color: oklch(48.8% 0.184 333.2);
Tailwind
colors: {
  custom: {
    50: '#ba6dad',
    500: '#98278b',
    950: '#000000',
  },
}
SCSS
$custom: #98278b;
$custom-light: #ba6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#98278b",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 306.903,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48836,
    "c": 0.1841,
    "h": 333.2
  },
  "luminance": 0.09991
}

Semantic roles & 50–950 ramp

primary
#98278B
secondary
#5EBC69
accent
#E25845
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #98278B

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

Preview Lab → · Contrast checker → · Palette generator →

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