#842286#842286

#842286 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.175 H 327.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#842286
RGBrgb(132, 34, 134)
HSLhsl(299, 60%, 33%)
HSVhsv(299, 75%, 53%)
CMYKcmyk(1.5%, 74.6%, 0%, 47.5%)
CIE-LABlab(33.50, 53.12, -34.26)
CIE-LCHlch(33.50, 63.21, 327.18°)
OKLaboklab(44.98% 0.1472 -0.0951)
OKLCHoklch(44.98% 0.175 327.1)
XYZxyz(14.3906, 7.7718, 23.2918)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842286 #248622
analogous
#522286 #842286 #862256
triadic
#842286 #868422 #228684
tetradic
#842286 #865222 #248622 #225686
square
#842286 #865222 #248622 #225686
split-complementary
#842286 #568622 #228652
monochromatic
#240924 #541655 #842286 #B42EB7 #D050D3

Accessibility & contrast

On white

8.22
#842286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#842286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842286
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842286#FFFFFF#000000##FFFFFF
##8422861.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4789
Deuteranopia (green-blind)
#3B5384
Tritanopia (blue-blind)
#883252
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842286;
/* rgb */ color: rgb(132, 34, 134);
/* oklch */ color: oklch(45.0% 0.175 327.1);
Tailwind
colors: {
  custom: {
    50: '#ab68aa',
    500: '#842286',
    950: '#000000',
  },
}
SCSS
$custom: #842286;
$custom-light: #ab68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842286",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 298.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44982,
    "c": 0.17523,
    "h": 327.1
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#842286
secondary
#50B64E
accent
#E34548
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842286

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

Preview Lab → · Contrast checker → · Palette generator →

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