#841F9D#841F9D

#841F9D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.198 H 318.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#841F9D
RGBrgb(132, 31, 157)
HSLhsl(288, 67%, 37%)
HSVhsv(288, 80%, 62%)
CMYKcmyk(15.9%, 80.3%, 0%, 38.4%)
CIE-LABlab(34.64, 58.31, -46.55)
CIE-LCHlch(34.64, 74.62, 321.40°)
OKLaboklab(46.26% 0.1479 -0.131)
OKLCHoklch(46.26% 0.198 318.5)
XYZxyz(16.0907, 8.3206, 32.6502)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841F9D #389D1F
analogous
#451F9D #841F9D #9D1F77
triadic
#841F9D #9D841F #1F9D84
tetradic
#841F9D #9D451F #389D1F #1F779D
square
#841F9D #9D451F #389D1F #1F779D
split-complementary
#841F9D #779D1F #1F9D45
monochromatic
#2E0B37 #59156A #841F9D #AF29D0 #C458DE

Accessibility & contrast

On white

7.88
#841F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#841F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841F9D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841F9D#FFFFFF#000000##FFFFFF
##841F9D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#26559A
Tritanopia (blue-blind)
#833B5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #841f9d;
/* rgb */ color: rgb(132, 31, 157);
/* oklch */ color: oklch(46.3% 0.198 318.5);
Tailwind
colors: {
  custom: {
    50: '#ac68bb',
    500: '#841f9d',
    950: '#000000',
  },
}
SCSS
$custom: #841f9d;
$custom-light: #ac68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#841f9d",
  "rgb": {
    "r": 132,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 288.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46263,
    "c": 0.19755,
    "h": 318.5
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#841F9D
secondary
#6BC256
accent
#EA3E60
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #841F9D

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

Preview Lab → · Contrast checker → · Palette generator →

#841F9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva