#842BAF#842BAF

#842BAF is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.201 H 311.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#842BAF
RGBrgb(132, 43, 175)
HSLhsl(280, 61%, 43%)
HSVhsv(280, 75%, 69%)
CMYKcmyk(24.6%, 75.4%, 0%, 31.4%)
CIE-LABlab(37.35, 57.78, -52.99)
CIE-LCHlch(37.35, 78.40, 317.48°)
OKLaboklab(48.58% 0.1346 -0.1499)
OKLCHoklch(48.58% 0.201 311.9)
XYZxyz(18.1160, 9.7289, 41.4727)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BAF #56AF2B
analogous
#422BAF #842BAF #AF2B98
triadic
#842BAF #AF842B #2BAF84
tetradic
#842BAF #AF422B #56AF2B #2B98AF
square
#842BAF #AF422B #56AF2B #2B98AF
split-complementary
#842BAF #98AF2B #2BAF42
monochromatic
#3A134D #5F1F7E #842BAF #A446D1 #BC77DE

Accessibility & contrast

On white

7.13
#842BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#842BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BAF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BAF#FFFFFF#000000##FFFFFF
##842BAF1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#165AAC
Tritanopia (blue-blind)
#7F4A6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842baf;
/* rgb */ color: rgb(132, 43, 175);
/* oklch */ color: oklch(48.6% 0.201 311.9);
Tailwind
colors: {
  custom: {
    50: '#ac6ec8',
    500: '#842baf',
    950: '#000000',
  },
}
SCSS
$custom: #842baf;
$custom-light: #ac6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#842baf",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 280.455,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48577,
    "c": 0.20148,
    "h": 311.9
  },
  "luminance": 0.09728
}

Semantic roles & 50–950 ramp

primary
#842BAF
secondary
#8CC570
accent
#E44478
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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