#842B95#842B95

#842B95 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.177 H 320.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#842B95
RGBrgb(132, 43, 149)
HSLhsl(290, 55%, 38%)
HSVhsv(290, 71%, 58%)
CMYKcmyk(11.4%, 71.1%, 0%, 41.6%)
CIE-LABlab(35.60, 52.51, -40.14)
CIE-LCHlch(35.60, 66.10, 322.61°)
OKLaboklab(46.78% 0.1375 -0.1123)
OKLCHoklch(46.78% 0.177 320.8)
XYZxyz(15.8038, 8.8040, 29.2949)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842B95 #3C952B
analogous
#4F2B95 #842B95 #952B71
triadic
#842B95 #95842B #2B9584
tetradic
#842B95 #954F2B #3C952B #2B7195
square
#842B95 #954F2B #3C952B #2B7195
split-complementary
#842B95 #71952B #2B954F
monochromatic
#301036 #5A1D66 #842B95 #AE39C4 #C267D3

Accessibility & contrast

On white

7.61
#842B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#842B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842B95
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842B95#FFFFFF#000000##FFFFFF
##842B951.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#365792
Tritanopia (blue-blind)
#853E5D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842b95;
/* rgb */ color: rgb(132, 43, 149);
/* oklch */ color: oklch(46.8% 0.177 320.8);
Tailwind
colors: {
  custom: {
    50: '#ab6db5',
    500: '#842b95',
    950: '#000000',
  },
}
SCSS
$custom: #842b95;
$custom-light: #ab6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#842b95",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 290.377,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46778,
    "c": 0.17749,
    "h": 320.8
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#842B95
secondary
#70BA62
accent
#DF4961
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842B95

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

Preview Lab → · Contrast checker → · Palette generator →

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