#842DBF#842DBF

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

Color values

HEX#842DBF
RGBrgb(132, 45, 191)
HSLhsl(276, 62%, 46%)
HSVhsv(276, 76%, 75%)
CMYKcmyk(30.9%, 76.4%, 0%, 25.1%)
CIE-LABlab(38.80, 60.47, -60.09)
CIE-LCHlch(38.80, 85.25, 315.18°)
OKLaboklab(49.97% 0.1297 -0.1708)
OKLCHoklch(49.97% 0.214 307.2)
XYZxyz(19.8561, 10.5441, 50.2693)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DBF #68BF2D
analogous
#3B2DBF #842DBF #BF2DB1
triadic
#842DBF #BF842D #2DBF84
tetradic
#842DBF #BF3B2D #68BF2D #2DB1BF
square
#842DBF #BF3B2D #68BF2D #2DB1BF
split-complementary
#842DBF #B1BF2D #2DBF3B
monochromatic
#40165C #62218D #842DBF #A153D6 #BC84E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842DBF#FFFFFF#000000##FFFFFF
##842DBF1.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)
#0059C3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#7A5175
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842dbf;
/* rgb */ color: rgb(132, 45, 191);
/* oklch */ color: oklch(50.0% 0.214 307.2);
Tailwind
colors: {
  custom: {
    50: '#ad6fd3',
    500: '#842dbf',
    950: '#000000',
  },
}
SCSS
$custom: #842dbf;
$custom-light: #ad6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#842dbf",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 275.753,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49971,
    "c": 0.21447,
    "h": 307.2
  },
  "luminance": 0.10544
}

Semantic roles & 50–950 ramp

primary
#842DBF
secondary
#9CCB7C
accent
#E54384
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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