#98228E#98228E

#98228E is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.192 H 331.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#98228E
RGBrgb(152, 34, 142)
HSLhsl(305, 63%, 36%)
HSVhsv(305, 78%, 60%)
CMYKcmyk(0%, 77.6%, 6.6%, 40.4%)
CIE-LABlab(37.43, 58.94, -32.75)
CIE-LCHlch(37.43, 67.43, 330.94°)
OKLaboklab(48.61% 0.169 -0.0902)
OKLCHoklch(48.61% 0.192 331.9)
XYZxyz(18.4034, 9.7740, 26.5032)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228E #22982C
analogous
#672298 #98228E #982253
triadic
#98228E #8E9822 #228E98
tetradic
#98228E #986722 #22982C #225398
square
#98228E #986722 #22982C #225398
split-complementary
#98228E #539822 #229867
monochromatic
#340C31 #66175F #98228E #CA2DBD #DA5ACF

Accessibility & contrast

On white

7.11
#98228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#98228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228E
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228E#FFFFFF#000000##FFFFFF
##98228E1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E91
Deuteranopia (green-blind)
#495E8B
Tritanopia (blue-blind)
#9F3157
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228e;
/* rgb */ color: rgb(152, 34, 142);
/* oklch */ color: oklch(48.6% 0.192 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba6baf',
    500: '#98228e',
    950: '#000000',
  },
}
SCSS
$custom: #98228e;
$custom-light: #ba6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#98228e",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 305.085,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48605,
    "c": 0.19158,
    "h": 331.9
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#98228E
secondary
#57BE60
accent
#E64F41
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98228E

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

Preview Lab → · Contrast checker → · Palette generator →

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