#98228C#98228C

#98228C is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.190 H 332.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#98228C
RGBrgb(152, 34, 140)
HSLhsl(306, 63%, 36%)
HSVhsv(306, 78%, 60%)
CMYKcmyk(0%, 77.6%, 7.9%, 40.4%)
CIE-LABlab(37.33, 58.63, -31.69)
CIE-LCHlch(37.33, 66.65, 331.61°)
OKLaboklab(48.49% 0.169 -0.0871)
OKLCHoklch(48.49% 0.19 332.7)
XYZxyz(18.2546, 9.7145, 25.7195)
Luminance0.0971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228C #22982E
analogous
#692298 #98228C #982251
triadic
#98228C #8C9822 #228C98
tetradic
#98228C #986922 #22982E #225198
square
#98228C #986922 #22982E #225198
split-complementary
#98228C #519822 #229869
monochromatic
#340C30 #66175E #98228C #CA2DBA #DA5ACD

Accessibility & contrast

On white

7.14
#98228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#98228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228C
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228C#FFFFFF#000000##FFFFFF
##98228C1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8F
Deuteranopia (green-blind)
#4A5E89
Tritanopia (blue-blind)
#9F2F56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228c;
/* rgb */ color: rgb(152, 34, 140);
/* oklch */ color: oklch(48.5% 0.190 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba6bae',
    500: '#98228c',
    950: '#000000',
  },
}
SCSS
$custom: #98228c;
$custom-light: #ba6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#98228c",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 306.102,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48493,
    "c": 0.19011,
    "h": 332.7
  },
  "luminance": 0.09713
}

Semantic roles & 50–950 ramp

primary
#98228C
secondary
#57BE62
accent
#E65241
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98228C

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

Preview Lab → · Contrast checker → · Palette generator →

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