#98228A#98228A

#98228A is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.189 H 333.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#98228A
RGBrgb(152, 34, 138)
HSLhsl(307, 63%, 36%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 77.6%, 9.2%, 40.4%)
CIE-LABlab(37.22, 58.32, -30.63)
CIE-LCHlch(37.22, 65.88, 332.29°)
OKLaboklab(48.38% 0.1689 -0.084)
OKLCHoklch(48.38% 0.189 333.5)
XYZxyz(18.1085, 9.6560, 24.9499)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228A #229830
analogous
#6B2298 #98228A #98224F
triadic
#98228A #8A9822 #228A98
tetradic
#98228A #986B22 #229830 #224F98
square
#98228A #986B22 #229830 #224F98
split-complementary
#98228A #4F9822 #22986B
monochromatic
#340C2F #66175D #98228A #CA2DB7 #DA5ACB

Accessibility & contrast

On white

7.17
#98228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#98228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228A
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228A#FFFFFF#000000##FFFFFF
##98228A1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8D
Deuteranopia (green-blind)
#4B5E87
Tritanopia (blue-blind)
#9F2E55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228a;
/* rgb */ color: rgb(152, 34, 138);
/* oklch */ color: oklch(48.4% 0.189 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba6bac',
    500: '#98228a',
    950: '#000000',
  },
}
SCSS
$custom: #98228a;
$custom-light: #ba6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#98228a",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 307.119,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.18865,
    "h": 333.5
  },
  "luminance": 0.09654
}

Semantic roles & 50–950 ramp

primary
#98228A
secondary
#57BE64
accent
#E65541
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98228A

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

Preview Lab → · Contrast checker → · Palette generator →

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