#842EBF#842EBF

#842EBF is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.213 H 307.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#842EBF
RGBrgb(132, 46, 191)
HSLhsl(276, 61%, 46%)
HSVhsv(276, 76%, 75%)
CMYKcmyk(30.9%, 75.9%, 0%, 25.1%)
CIE-LABlab(38.94, 60.08, -59.87)
CIE-LCHlch(38.94, 84.82, 315.10°)
OKLaboklab(50.07% 0.1288 -0.1702)
OKLCHoklch(50.07% 0.213 307.1)
XYZxyz(19.8947, 10.6214, 50.2822)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EBF #69BF2E
analogous
#3C2EBF #842EBF #BF2EB2
triadic
#842EBF #BF842E #2EBF84
tetradic
#842EBF #BF3C2E #69BF2E #2EB2BF
square
#842EBF #BF3C2E #69BF2E #2EB2BF
split-complementary
#842EBF #B2BF2E #2EBF3C
monochromatic
#40165C #62228E #842EBF #A154D6 #BC86E2

Accessibility & contrast

On white

6.72
#842EBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#842EBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EBF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EBF#FFFFFF#000000##FFFFFF
##842EBF1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#7A5275
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842ebf;
/* rgb */ color: rgb(132, 46, 191);
/* oklch */ color: oklch(50.1% 0.213 307.1);
Tailwind
colors: {
  custom: {
    50: '#ad70d3',
    500: '#842ebf',
    950: '#000000',
  },
}
SCSS
$custom: #842ebf;
$custom-light: #ad70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#842ebf",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 275.586,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50065,
    "c": 0.21345,
    "h": 307.1
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#842EBF
secondary
#9DCB7E
accent
#E44485
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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