#842DAF#842DAF

#842DAF is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.199 H 311.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#842DAF
RGBrgb(132, 45, 175)
HSLhsl(280, 59%, 43%)
HSVhsv(280, 74%, 69%)
CMYKcmyk(24.6%, 74.3%, 0%, 31.4%)
CIE-LABlab(37.62, 57.01, -52.55)
CIE-LCHlch(37.62, 77.54, 317.33°)
OKLaboklab(48.77% 0.1327 -0.1487)
OKLCHoklch(48.77% 0.199 311.7)
XYZxyz(18.1905, 9.8779, 41.4975)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DAF #58AF2D
analogous
#432DAF #842DAF #AF2D99
triadic
#842DAF #AF842D #2DAF84
tetradic
#842DAF #AF432D #58AF2D #2D99AF
square
#842DAF #AF432D #58AF2D #2D99AF
split-complementary
#842DAF #99AF2D #2DAF43
monochromatic
#3B144E #5F207E #842DAF #A349D0 #BC7ADD

Accessibility & contrast

On white

7.06
#842DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#842DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842DAF
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DAF#FFFFFF#000000##FFFFFF
##842DAF1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#195AAC
Tritanopia (blue-blind)
#7F4B6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842daf;
/* rgb */ color: rgb(132, 45, 175);
/* oklch */ color: oklch(48.8% 0.199 311.7);
Tailwind
colors: {
  custom: {
    50: '#ac6fc8',
    500: '#842daf',
    950: '#000000',
  },
}
SCSS
$custom: #842daf;
$custom-light: #ac6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#842daf",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 280.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48768,
    "c": 0.19927,
    "h": 311.7
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#842DAF
secondary
#8EC573
accent
#E24679
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842DAF

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

Preview Lab → · Contrast checker → · Palette generator →

#842DAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva