#842495#842495

#842495 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.186 H 321.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#842495
RGBrgb(132, 36, 149)
HSLhsl(291, 61%, 36%)
HSVhsv(291, 76%, 58%)
CMYKcmyk(11.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(34.68, 55.15, -41.63)
CIE-LCHlch(34.68, 69.09, 322.96°)
OKLaboklab(46.12% 0.1445 -0.1166)
OKLCHoklch(46.12% 0.186 321.1)
XYZxyz(15.5708, 8.3381, 29.2172)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842495 #359524
analogous
#4C2495 #842495 #95246E
triadic
#842495 #958424 #249584
tetradic
#842495 #954C24 #359524 #246E95
square
#842495 #954C24 #359524 #246E95
split-complementary
#842495 #6E9524 #24954C
monochromatic
#2D0C32 #581864 #842495 #B030C6 #C55CD8

Accessibility & contrast

On white

7.87
#842495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#842495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842495
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842495#FFFFFF#000000##FFFFFF
##8424951.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#325592
Tritanopia (blue-blind)
#853A5B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842495;
/* rgb */ color: rgb(132, 36, 149);
/* oklch */ color: oklch(46.1% 0.186 321.1);
Tailwind
colors: {
  custom: {
    50: '#ab6ab5',
    500: '#842495',
    950: '#000000',
  },
}
SCSS
$custom: #842495;
$custom-light: #ab6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#842495",
  "rgb": {
    "r": 132,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 290.973,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46117,
    "c": 0.18567,
    "h": 321.1
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#842495
secondary
#68BC59
accent
#E4445C
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842495

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

Preview Lab → · Contrast checker → · Palette generator →

#842495 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva