#98229D#98229D

#98229D is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.203 H 326.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#98229D
RGBrgb(152, 34, 157)
HSLhsl(298, 64%, 37%)
HSVhsv(298, 78%, 62%)
CMYKcmyk(3.2%, 78.3%, 0%, 38.4%)
CIE-LABlab(38.30, 61.39, -40.51)
CIE-LCHlch(38.30, 73.55, 326.58°)
OKLaboklab(49.5% 0.1688 -0.1127)
OKLCHoklch(49.5% 0.203 326.3)
XYZxyz(19.6064, 10.2551, 32.8385)
Luminance0.1025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98229D #279D22
analogous
#5B229D #98229D #9D2265
triadic
#98229D #9D9822 #229D98
tetradic
#98229D #9D5B22 #279D22 #22659D
square
#98229D #9D5B22 #279D22 #22659D
split-complementary
#98229D #659D22 #229D5B
monochromatic
#370C38 #67176B #98229D #C92DCF #D75DDC

Accessibility & contrast

On white

6.88
#98229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#98229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98229D
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98229D#FFFFFF#000000##FFFFFF
##98229D1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#415F9A
Tritanopia (blue-blind)
#9C385F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #98229d;
/* rgb */ color: rgb(152, 34, 157);
/* oklch */ color: oklch(49.5% 0.203 326.3);
Tailwind
colors: {
  custom: {
    50: '#ba6cba',
    500: '#98229d',
    950: '#000000',
  },
}
SCSS
$custom: #98229d;
$custom-light: #ba6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#98229d",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 297.561,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.49499,
    "c": 0.20299,
    "h": 326.3
  },
  "luminance": 0.10254
}

Semantic roles & 50–950 ramp

primary
#98229D
secondary
#5EC15A
accent
#E74047
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #98229D

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

Preview Lab → · Contrast checker → · Palette generator →

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