#842AB9#842AB9

#842AB9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.212 H 309.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#842AB9
RGBrgb(132, 42, 185)
HSLhsl(278, 63%, 45%)
HSVhsv(278, 77%, 73%)
CMYKcmyk(28.6%, 77.3%, 0%, 27.5%)
CIE-LABlab(37.96, 60.28, -57.93)
CIE-LCHlch(37.96, 83.61, 316.14°)
OKLaboklab(49.24% 0.1336 -0.1645)
OKLCHoklch(49.24% 0.212 309.1)
XYZxyz(19.0989, 10.0646, 46.8261)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AB9 #5FB92A
analogous
#3C2AB9 #842AB9 #B92AA7
triadic
#842AB9 #B9842A #2AB984
tetradic
#842AB9 #B93C2A #5FB92A #2AA7B9
square
#842AB9 #B93C2A #5FB92A #2AA7B9
split-complementary
#842AB9 #A7B92A #2AB93C
monochromatic
#3D1355 #601F87 #842AB9 #A24AD6 #BC7CE1

Accessibility & contrast

On white

6.97
#842AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842AB9
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AB9#FFFFFF#000000##FFFFFF
##842AB91.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#7C4D71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842ab9;
/* rgb */ color: rgb(132, 42, 185);
/* oklch */ color: oklch(49.2% 0.212 309.1);
Tailwind
colors: {
  custom: {
    50: '#ad6ecf',
    500: '#842ab9',
    950: '#000000',
  },
}
SCSS
$custom: #842ab9;
$custom-light: #ad6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#842ab9",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 277.762,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49236,
    "c": 0.21186,
    "h": 309.1
  },
  "luminance": 0.10064
}

Semantic roles & 50–950 ramp

primary
#842AB9
secondary
#94CA75
accent
#E6427F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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