#842DB3#842DB3

#842DB3 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.203 H 310.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#842DB3
RGBrgb(132, 45, 179)
HSLhsl(279, 60%, 44%)
HSVhsv(279, 75%, 70%)
CMYKcmyk(26.3%, 74.9%, 0%, 29.8%)
CIE-LABlab(37.91, 57.86, -54.46)
CIE-LCHlch(37.91, 79.46, 316.73°)
OKLaboklab(49.06% 0.132 -0.1543)
OKLCHoklch(49.06% 0.203 310.6)
XYZxyz(18.5892, 10.0374, 43.5972)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB3 #5CB32D
analogous
#412DB3 #842DB3 #B32D9F
triadic
#842DB3 #B3842D #2DB384
tetradic
#842DB3 #B3412D #5CB32D #2D9FB3
square
#842DB3 #B3412D #5CB32D #2D9FB3
split-complementary
#842DB3 #9FB32D #2DB341
monochromatic
#3C1451 #602182 #842DB3 #A34BD2 #BC7CDE

Accessibility & contrast

On white

6.98
#842DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#842DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DB3
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB3#FFFFFF#000000##FFFFFF
##842DB31.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0E5BB0
Tritanopia (blue-blind)
#7E4C6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842db3;
/* rgb */ color: rgb(132, 45, 179);
/* oklch */ color: oklch(49.1% 0.203 310.6);
Tailwind
colors: {
  custom: {
    50: '#ac6fcb',
    500: '#842db3',
    950: '#000000',
  },
}
SCSS
$custom: #842db3;
$custom-light: #ac6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#842db3",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 278.955,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49062,
    "c": 0.20307,
    "h": 310.6
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#842DB3
secondary
#92C775
accent
#E3457C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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