#98238B#98238B

#98238B is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.188 H 333.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#98238B
RGBrgb(152, 35, 139)
HSLhsl(307, 63%, 37%)
HSVhsv(307, 77%, 60%)
CMYKcmyk(0%, 77%, 8.6%, 40.4%)
CIE-LABlab(37.38, 58.17, -31.00)
CIE-LCHlch(37.38, 65.91, 331.95°)
OKLaboklab(48.51% 0.1681 -0.0851)
OKLCHoklch(48.51% 0.188 333.1)
XYZxyz(18.2102, 9.7431, 25.3426)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98238B #239830
analogous
#6B2398 #98238B #982351
triadic
#98238B #8B9823 #238B98
tetradic
#98238B #986B23 #239830 #235198
square
#98238B #986B23 #239830 #235198
split-complementary
#98238B #519823 #23986B
monochromatic
#350C30 #66185E #98238B #CA2EB8 #D95CCC

Accessibility & contrast

On white

7.12
#98238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98238B
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98238B#FFFFFF#000000##FFFFFF
##98238B1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#4B5E88
Tritanopia (blue-blind)
#9F3055
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98238b;
/* rgb */ color: rgb(152, 35, 139);
/* oklch */ color: oklch(48.5% 0.188 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba6cad',
    500: '#98238b',
    950: '#000000',
  },
}
SCSS
$custom: #98238b;
$custom-light: #ba6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#98238b",
  "rgb": {
    "r": 152,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 306.667,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48513,
    "c": 0.18837,
    "h": 333.1
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#98238B
secondary
#59BE64
accent
#E65442
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #98238B

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

Preview Lab → · Contrast checker → · Palette generator →

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