#841F8B#841F8B

#841F8B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.183 H 325.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#841F8B
RGBrgb(132, 31, 139)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 55%)
CMYKcmyk(5%, 77.7%, 0%, 45.5%)
CIE-LABlab(33.46, 55.00, -37.43)
CIE-LCHlch(33.46, 66.53, 325.76°)
OKLaboklab(45.05% 0.1498 -0.1043)
OKLCHoklch(45.05% 0.183 325.2)
XYZxyz(14.6656, 7.7506, 25.1447)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841F8B #268B1F
analogous
#4E1F8B #841F8B #8B1F5C
triadic
#841F8B #8B841F #1F8B84
tetradic
#841F8B #8B4E1F #268B1F #1F5C8B
square
#841F8B #8B4E1F #268B1F #1F5C8B
split-complementary
#841F8B #5C8B1F #1F8B4E
monochromatic
#250927 #541459 #841F8B #B42ABD #CE4DD7

Accessibility & contrast

On white

8.24
#841F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#841F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841F8B
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841F8B#FFFFFF#000000##FFFFFF
##841F8B1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#375388
Tritanopia (blue-blind)
#873354
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #841f8b;
/* rgb */ color: rgb(132, 31, 139);
/* oklch */ color: oklch(45.0% 0.183 325.2);
Tailwind
colors: {
  custom: {
    50: '#ab67ad',
    500: '#841f8b',
    950: '#000000',
  },
}
SCSS
$custom: #841f8b;
$custom-light: #ab67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#841f8b",
  "rgb": {
    "r": 132,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 296.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.18252,
    "h": 325.2
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#841F8B
secondary
#53BA4C
accent
#E7414C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #841F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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