#98229E#98229E

#98229E is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.204 H 325.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#98229E
RGBrgb(152, 34, 158)
HSLhsl(297, 65%, 38%)
HSVhsv(297, 78%, 62%)
CMYKcmyk(3.8%, 78.5%, 0%, 38%)
CIE-LABlab(38.36, 61.56, -41.02)
CIE-LCHlch(38.36, 73.98, 326.33°)
OKLaboklab(49.56% 0.1688 -0.1142)
OKLCHoklch(49.56% 0.204 325.9)
XYZxyz(19.6921, 10.2894, 33.2900)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98229E #289E22
analogous
#5A229E #98229E #9E2266
triadic
#98229E #9E9822 #229E98
tetradic
#98229E #9E5A22 #289E22 #22669E
square
#98229E #9E5A22 #289E22 #22669E
split-complementary
#98229E #669E22 #229E5A
monochromatic
#370C39 #68176C #98229E #C82DD0 #D65EDC

Accessibility & contrast

On white

6.87
#98229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#98229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98229E
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98229E#FFFFFF#000000##FFFFFF
##98229E1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#405F9B
Tritanopia (blue-blind)
#9C3960
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #98229e;
/* rgb */ color: rgb(152, 34, 158);
/* oklch */ color: oklch(49.6% 0.204 325.9);
Tailwind
colors: {
  custom: {
    50: '#ba6cbb',
    500: '#98229e',
    950: '#000000',
  },
}
SCSS
$custom: #98229e;
$custom-light: #ba6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#98229e",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 297.097,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.20377,
    "h": 325.9
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#98229E
secondary
#60C15B
accent
#E84048
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #98229E

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

Preview Lab → · Contrast checker → · Palette generator →

#98229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva