#842EBD#842EBD

#842EBD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.212 H 307.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#842EBD
RGBrgb(132, 46, 189)
HSLhsl(276, 61%, 46%)
HSVhsv(276, 76%, 74%)
CMYKcmyk(30.2%, 75.7%, 0%, 25.9%)
CIE-LABlab(38.78, 59.64, -58.95)
CIE-LCHlch(38.78, 83.86, 315.34°)
OKLaboklab(49.91% 0.1292 -0.1675)
OKLCHoklch(49.91% 0.212 307.7)
XYZxyz(19.6761, 10.5339, 49.1310)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EBD #67BD2E
analogous
#3C2EBD #842EBD #BD2EAE
triadic
#842EBD #BD842E #2EBD84
tetradic
#842EBD #BD3C2E #67BD2E #2EAEBD
square
#842EBD #BD3C2E #67BD2E #2EAEBD
split-complementary
#842EBD #AEBD2E #2EBD3C
monochromatic
#3F165B #62228C #842EBD #A153D5 #BC84E1

Accessibility & contrast

On white

6.76
#842EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#842EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EBD
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EBD#FFFFFF#000000##FFFFFF
##842EBD1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#7B5174
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842ebd;
/* rgb */ color: rgb(132, 46, 189);
/* oklch */ color: oklch(49.9% 0.212 307.7);
Tailwind
colors: {
  custom: {
    50: '#ad70d2',
    500: '#842ebd',
    950: '#000000',
  },
}
SCSS
$custom: #842ebd;
$custom-light: #ad70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#842ebd",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 276.084,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49911,
    "c": 0.21153,
    "h": 307.7
  },
  "luminance": 0.10534
}

Semantic roles & 50–950 ramp

primary
#842EBD
secondary
#9BCA7C
accent
#E44484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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