#842795#842795

#842795 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.182 H 321.0°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#842795
RGBrgb(132, 39, 149)
HSLhsl(291, 59%, 37%)
HSVhsv(291, 74%, 58%)
CMYKcmyk(11.4%, 73.8%, 0%, 41.6%)
CIE-LABlab(35.06, 54.06, -41.02)
CIE-LCHlch(35.06, 67.86, 322.81°)
OKLaboklab(46.39% 0.1416 -0.1148)
OKLCHoklch(46.39% 0.182 321)
XYZxyz(15.6654, 8.5273, 29.2487)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842795 #389527
analogous
#4D2795 #842795 #95276F
triadic
#842795 #958427 #279584
tetradic
#842795 #954D27 #389527 #276F95
square
#842795 #954D27 #389527 #276F95
split-complementary
#842795 #6F9527 #27954D
monochromatic
#2E0E34 #591A64 #842795 #AF34C6 #C461D6

Accessibility & contrast

On white

7.76
#842795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#842795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842795
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842795#FFFFFF#000000##FFFFFF
##8427951.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#335692
Tritanopia (blue-blind)
#853C5C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842795;
/* rgb */ color: rgb(132, 39, 149);
/* oklch */ color: oklch(46.4% 0.182 321.0);
Tailwind
colors: {
  custom: {
    50: '#ab6bb5',
    500: '#842795',
    950: '#000000',
  },
}
SCSS
$custom: #842795;
$custom-light: #ab6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#842795",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 290.727,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.1823,
    "h": 321
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#842795
secondary
#6BBB5D
accent
#E2465E
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842795

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

Preview Lab → · Contrast checker → · Palette generator →

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