#98229F#98229F

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

Color values

HEX#98229F
RGBrgb(152, 34, 159)
HSLhsl(297, 65%, 38%)
HSVhsv(297, 79%, 62%)
CMYKcmyk(4.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(38.42, 61.73, -41.52)
CIE-LCHlch(38.42, 74.40, 326.07°)
OKLaboklab(49.62% 0.1687 -0.1156)
OKLCHoklch(49.62% 0.205 325.6)
XYZxyz(19.7785, 10.3240, 33.7452)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98229F #299F22
analogous
#59229F #98229F #9F2267
triadic
#98229F #9F9822 #229F98
tetradic
#98229F #9F5922 #299F22 #22679F
square
#98229F #9F5922 #299F22 #22679F
split-complementary
#98229F #679F22 #229F59
monochromatic
#380C3A #68176D #98229F #C82DD1 #D65FDD

Accessibility & contrast

On white

6.85
#98229F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #98229F
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98229F#FFFFFF#000000##FFFFFF
##98229F1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#3F5F9C
Tritanopia (blue-blind)
#9C3960
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #98229f;
/* rgb */ color: rgb(152, 34, 159);
/* oklch */ color: oklch(49.6% 0.205 325.6);
Tailwind
colors: {
  custom: {
    50: '#ba6cbc',
    500: '#98229f',
    950: '#000000',
  },
}
SCSS
$custom: #98229f;
$custom-light: #ba6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#98229f",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 296.64,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.20454,
    "h": 325.6
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#98229F
secondary
#61C15B
accent
#E84049
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #98229F

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

Preview Lab → · Contrast checker → · Palette generator →

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