#842EAF#842EAF

#842EAF is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.198 H 311.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#842EAF
RGBrgb(132, 46, 175)
HSLhsl(280, 58%, 43%)
HSVhsv(280, 74%, 69%)
CMYKcmyk(24.6%, 73.7%, 0%, 31.4%)
CIE-LABlab(37.76, 56.61, -52.33)
CIE-LCHlch(37.76, 77.09, 317.25°)
OKLaboklab(48.87% 0.1317 -0.148)
OKLCHoklch(48.87% 0.198 311.7)
XYZxyz(18.2291, 9.9551, 41.5104)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EAF #59AF2E
analogous
#432EAF #842EAF #AF2E99
triadic
#842EAF #AF842E #2EAF84
tetradic
#842EAF #AF432E #59AF2E #2E99AF
square
#842EAF #AF432E #59AF2E #2E99AF
split-complementary
#842EAF #99AF2E #2EAF43
monochromatic
#3B154E #5F217F #842EAF #A34BD0 #BC7BDC

Accessibility & contrast

On white

7.02
#842EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#842EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EAF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EAF#FFFFFF#000000##FFFFFF
##842EAF1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1A5AAC
Tritanopia (blue-blind)
#7F4B6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842eaf;
/* rgb */ color: rgb(132, 46, 175);
/* oklch */ color: oklch(48.9% 0.198 311.7);
Tailwind
colors: {
  custom: {
    50: '#ac6fc8',
    500: '#842eaf',
    950: '#000000',
  },
}
SCSS
$custom: #842eaf;
$custom-light: #ac6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#842eaf",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 280,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48867,
    "c": 0.19815,
    "h": 311.7
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#842EAF
secondary
#8FC574
accent
#E2467A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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