#98238C#98238C

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

Color values

HEX#98238C
RGBrgb(152, 35, 140)
HSLhsl(306, 63%, 37%)
HSVhsv(306, 77%, 60%)
CMYKcmyk(0%, 77%, 7.9%, 40.4%)
CIE-LABlab(37.43, 58.33, -31.53)
CIE-LCHlch(37.43, 66.30, 331.61°)
OKLaboklab(48.57% 0.1681 -0.0866)
OKLCHoklch(48.57% 0.189 332.7)
XYZxyz(18.2836, 9.7725, 25.7292)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98238C #23982F
analogous
#6A2398 #98238C #982352
triadic
#98238C #8C9823 #238C98
tetradic
#98238C #986A23 #23982F #235298
square
#98238C #986A23 #23982F #235298
split-complementary
#98238C #529823 #23986A
monochromatic
#350C30 #66185E #98238C #CA2EBA #D95CCD

Accessibility & contrast

On white

7.11
#98238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#98238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98238C
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98238C#FFFFFF#000000##FFFFFF
##98238C1.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)
#1C4D8F
Deuteranopia (green-blind)
#4B5E89
Tritanopia (blue-blind)
#9F3056
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98238c;
/* rgb */ color: rgb(152, 35, 140);
/* oklch */ color: oklch(48.6% 0.189 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba6cae',
    500: '#98238c',
    950: '#000000',
  },
}
SCSS
$custom: #98238c;
$custom-light: #ba6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#98238c",
  "rgb": {
    "r": 152,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 306.154,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48568,
    "c": 0.1891,
    "h": 332.7
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#98238C
secondary
#59BE63
accent
#E65342
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #98238C

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

Preview Lab → · Contrast checker → · Palette generator →

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