#98418A#98418A

#98418A is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.6% C 0.147 H 334.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#98418A
RGBrgb(152, 65, 138)
HSLhsl(310, 40%, 43%)
HSVhsv(310, 57%, 60%)
CMYKcmyk(0%, 57.2%, 9.2%, 40.4%)
CIE-LABlab(41.68, 45.92, -23.66)
CIE-LCHlch(41.68, 51.65, 332.74°)
OKLaboklab(51.62% 0.1326 -0.0643)
OKLCHoklch(51.62% 0.147 334.1)
XYZxyz(19.4267, 12.2924, 25.3893)
Luminance0.1229 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98418A #41984F
analogous
#7A4198 #98418A #98415F
triadic
#98418A #8A9841 #418A98
tetradic
#98418A #987A41 #41984F #415F98
square
#98418A #987A41 #41984F #415F98
split-complementary
#98418A #5F9841 #41987A
monochromatic
#421C3C #6D2F63 #98418A #BA5DAB #CC88C1

Accessibility & contrast

On white

6.07
#98418A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#98418A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #98418A
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98418A#FFFFFF#000000##FFFFFF
##98418A1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405A8C
Deuteranopia (green-blind)
#5A6788
Tritanopia (blue-blind)
#9F465F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #98418a;
/* rgb */ color: rgb(152, 65, 138);
/* oklch */ color: oklch(51.6% 0.147 334.1);
Tailwind
colors: {
  custom: {
    50: '#b97aac',
    500: '#98418a',
    950: '#000000',
  },
}
SCSS
$custom: #98418a;
$custom-light: #b97aac;
$custom-dark: #000000;
JSON
{
  "hex": "#98418a",
  "rgb": {
    "r": 152,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 309.655,
    "s": 40.092,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51623,
    "c": 0.14739,
    "h": 334.1
  },
  "luminance": 0.12291
}

Semantic roles & 50–950 ramp

primary
#98418A
secondary
#7EB787
accent
#D06B58
background
#FBF7FA
surface
#F6EEF4
border
#D0C9CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #98418A

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

Preview Lab → · Contrast checker → · Palette generator →

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