#842388#842388

#842388 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.176 H 326.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#842388
RGBrgb(132, 35, 136)
HSLhsl(298, 59%, 34%)
HSVhsv(298, 74%, 53%)
CMYKcmyk(2.9%, 74.3%, 0%, 46.7%)
CIE-LABlab(33.74, 53.12, -35.12)
CIE-LCHlch(33.74, 63.68, 326.53°)
OKLaboklab(45.19% 0.1462 -0.0976)
OKLCHoklch(45.19% 0.176 326.3)
XYZxyz(14.5604, 7.8862, 24.0431)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842388 #278823
analogous
#512388 #842388 #882359
triadic
#842388 #888423 #238884
tetradic
#842388 #885123 #278823 #235988
square
#842388 #885123 #278823 #235988
split-complementary
#842388 #598823 #238851
monochromatic
#260A27 #551657 #842388 #B330B9 #CE53D3

Accessibility & contrast

On white

8.15
#842388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#842388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842388
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842388#FFFFFF#000000##FFFFFF
##8423881.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08488B
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#883453
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842388;
/* rgb */ color: rgb(132, 35, 136);
/* oklch */ color: oklch(45.2% 0.176 326.3);
Tailwind
colors: {
  custom: {
    50: '#ab69ab',
    500: '#842388',
    950: '#000000',
  },
}
SCSS
$custom: #842388;
$custom-light: #ab69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#842388",
  "rgb": {
    "r": 132,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 297.624,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45193,
    "c": 0.17575,
    "h": 326.3
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#842388
secondary
#54B750
accent
#E2464C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842388

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

Preview Lab → · Contrast checker → · Palette generator →

#842388 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva