#842FBF#842FBF

#842FBF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.212 H 307.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#842FBF
RGBrgb(132, 47, 191)
HSLhsl(275, 61%, 47%)
HSVhsv(275, 75%, 75%)
CMYKcmyk(30.9%, 75.4%, 0%, 25.1%)
CIE-LABlab(39.07, 59.69, -59.65)
CIE-LCHlch(39.07, 84.39, 315.02°)
OKLaboklab(50.16% 0.1279 -0.1695)
OKLCHoklch(50.16% 0.212 307)
XYZxyz(19.9342, 10.7004, 50.2953)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FBF #6ABF2F
analogous
#3C2FBF #842FBF #BF2FB2
triadic
#842FBF #BF842F #2FBF84
tetradic
#842FBF #BF3C2F #6ABF2F #2FB2BF
square
#842FBF #BF3C2F #6ABF2F #2FB2BF
split-complementary
#842FBF #B2BF2F #2FBF3C
monochromatic
#40175D #62238E #842FBF #A156D5 #BC87E1

Accessibility & contrast

On white

6.69
#842FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#842FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FBF
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FBF#FFFFFF#000000##FFFFFF
##842FBF1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842fbf;
/* rgb */ color: rgb(132, 47, 191);
/* oklch */ color: oklch(50.2% 0.212 307.0);
Tailwind
colors: {
  custom: {
    50: '#ad70d3',
    500: '#842fbf',
    950: '#000000',
  },
}
SCSS
$custom: #842fbf;
$custom-light: #ad70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#842fbf",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 275.417,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50161,
    "c": 0.2124,
    "h": 307
  },
  "luminance": 0.107
}

Semantic roles & 50–950 ramp

primary
#842FBF
secondary
#9ECB7F
accent
#E44486
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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