#982287#982287

#982287 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.186 H 334.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#982287
RGBrgb(152, 34, 135)
HSLhsl(309, 63%, 36%)
HSVhsv(309, 78%, 60%)
CMYKcmyk(0%, 77.6%, 11.2%, 40.4%)
CIE-LABlab(37.06, 57.86, -29.03)
CIE-LCHlch(37.06, 64.74, 333.36°)
OKLaboklab(48.22% 0.1687 -0.0794)
OKLCHoklch(48.22% 0.186 334.8)
XYZxyz(17.8943, 9.5703, 23.8218)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982287 #229833
analogous
#6E2298 #982287 #98224C
triadic
#982287 #879822 #228798
tetradic
#982287 #986E22 #229833 #224C98
square
#982287 #986E22 #229833 #224C98
split-complementary
#982287 #4C9822 #22986E
monochromatic
#340C2E #66175B #982287 #CA2DB3 #DA5AC8

Accessibility & contrast

On white

7.21
#982287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#982287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982287
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982287#FFFFFF#000000##FFFFFF
##9822871.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C8A
Deuteranopia (green-blind)
#4D5D84
Tritanopia (blue-blind)
#A02D53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #982287;
/* rgb */ color: rgb(152, 34, 135);
/* oklch */ color: oklch(48.2% 0.186 334.8);
Tailwind
colors: {
  custom: {
    50: '#ba6baa',
    500: '#982287',
    950: '#000000',
  },
}
SCSS
$custom: #982287;
$custom-light: #ba6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#982287",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 308.644,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48217,
    "c": 0.18649,
    "h": 334.8
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#982287
secondary
#57BE66
accent
#E65941
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #982287

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

Preview Lab → · Contrast checker → · Palette generator →

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