#842381#842381

#842381 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.170 H 329.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#842381
RGBrgb(132, 35, 129)
HSLhsl(302, 58%, 33%)
HSVhsv(302, 73%, 52%)
CMYKcmyk(0%, 73.5%, 2.3%, 48.2%)
CIE-LABlab(33.34, 51.90, -31.42)
CIE-LCHlch(33.34, 60.67, 328.81°)
OKLaboklab(44.77% 0.1462 -0.0868)
OKLCHoklch(44.77% 0.17 329.3)
XYZxyz(14.0791, 7.6936, 21.5081)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842381 #238426
analogous
#572384 #842381 #842350
triadic
#842381 #818423 #238184
tetradic
#842381 #845723 #238426 #235084
square
#842381 #845723 #238426 #235084
split-complementary
#842381 #508423 #238457
monochromatic
#230922 #541652 #842381 #B430B0 #D151CD

Accessibility & contrast

On white

8.27
#842381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#842381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842381
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842381#FFFFFF#000000##FFFFFF
##8423811.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164684
Deuteranopia (green-blind)
#3F537F
Tritanopia (blue-blind)
#893050
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842381;
/* rgb */ color: rgb(132, 35, 129);
/* oklch */ color: oklch(44.8% 0.170 329.3);
Tailwind
colors: {
  custom: {
    50: '#ab68a6',
    500: '#842381',
    950: '#000000',
  },
}
SCSS
$custom: #842381;
$custom-light: #ab68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#842381",
  "rgb": {
    "r": 132,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 301.856,
    "s": 58.084,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44769,
    "c": 0.17001,
    "h": 329.3
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#842381
secondary
#4EB451
accent
#E14B46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842381

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

Preview Lab → · Contrast checker → · Palette generator →

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