#842287#842287

#842287 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.176 H 326.7°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#842287
RGBrgb(132, 34, 135)
HSLhsl(298, 60%, 33%)
HSVhsv(298, 75%, 53%)
CMYKcmyk(2.2%, 74.8%, 0%, 47.1%)
CIE-LABlab(33.56, 53.29, -34.79)
CIE-LCHlch(33.56, 63.64, 326.86°)
OKLaboklab(45.04% 0.1472 -0.0966)
OKLCHoklch(45.04% 0.176 326.7)
XYZxyz(14.4607, 7.7999, 23.6608)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842287 #258722
analogous
#512287 #842287 #872257
triadic
#842287 #878422 #228784
tetradic
#842287 #875122 #258722 #225787
square
#842287 #875122 #258722 #225787
split-complementary
#842287 #578722 #228751
monochromatic
#240925 #541656 #842287 #B42EB8 #CF50D3

Accessibility & contrast

On white

8.20
#842287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#842287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842287
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842287#FFFFFF#000000##FFFFFF
##8422871.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#883353
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842287;
/* rgb */ color: rgb(132, 34, 135);
/* oklch */ color: oklch(45.0% 0.176 326.7);
Tailwind
colors: {
  custom: {
    50: '#ab68aa',
    500: '#842287',
    950: '#000000',
  },
}
SCSS
$custom: #842287;
$custom-light: #ab68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842287",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 298.218,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45043,
    "c": 0.17605,
    "h": 326.7
  },
  "luminance": 0.07799
}

Semantic roles & 50–950 ramp

primary
#842287
secondary
#51B74E
accent
#E3454A
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842287

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

Preview Lab → · Contrast checker → · Palette generator →

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