#842FBE#842FBE

#842FBE is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.211 H 307.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#842FBE
RGBrgb(132, 47, 190)
HSLhsl(276, 60%, 46%)
HSVhsv(276, 75%, 75%)
CMYKcmyk(30.5%, 75.3%, 0%, 25.5%)
CIE-LABlab(39.00, 59.47, -59.19)
CIE-LCHlch(39.00, 83.91, 315.14°)
OKLaboklab(50.08% 0.1281 -0.1682)
OKLCHoklch(50.08% 0.211 307.3)
XYZxyz(19.8245, 10.6565, 49.7178)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FBE #69BE2F
analogous
#3C2FBE #842FBE #BE2FB1
triadic
#842FBE #BE842F #2FBE84
tetradic
#842FBE #BE3C2F #69BE2F #2FB1BE
square
#842FBE #BE3C2F #69BE2F #2FB1BE
split-complementary
#842FBE #B1BE2F #2FBE3C
monochromatic
#40175C #62238D #842FBE #A155D5 #BC86E1

Accessibility & contrast

On white

6.71
#842FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#842FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FBE
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FBE#FFFFFF#000000##FFFFFF
##842FBE1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842fbe;
/* rgb */ color: rgb(132, 47, 190);
/* oklch */ color: oklch(50.1% 0.211 307.3);
Tailwind
colors: {
  custom: {
    50: '#ad70d2',
    500: '#842fbe',
    950: '#000000',
  },
}
SCSS
$custom: #842fbe;
$custom-light: #ad70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#842fbe",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 275.664,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50084,
    "c": 0.21144,
    "h": 307.3
  },
  "luminance": 0.10656
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #842FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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