#842288#842288

#842288 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.177 H 326.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#842288
RGBrgb(132, 34, 136)
HSLhsl(298, 60%, 33%)
HSVhsv(298, 75%, 53%)
CMYKcmyk(2.9%, 75%, 0%, 46.7%)
CIE-LABlab(33.62, 53.47, -35.31)
CIE-LCHlch(33.62, 64.08, 326.56°)
OKLaboklab(45.11% 0.1472 -0.0981)
OKLCHoklch(45.11% 0.177 326.3)
XYZxyz(14.5314, 7.8282, 24.0334)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842288 #268822
analogous
#512288 #842288 #882259
triadic
#842288 #888422 #228884
tetradic
#842288 #885122 #268822 #225988
square
#842288 #885122 #268822 #225988
split-complementary
#842288 #598822 #228851
monochromatic
#250A26 #541657 #842288 #B42EB9 #CE51D3

Accessibility & contrast

On white

8.19
#842288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#842288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842288
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842288#FFFFFF#000000##FFFFFF
##8422881.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478B
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#883353
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842288;
/* rgb */ color: rgb(132, 34, 136);
/* oklch */ color: oklch(45.1% 0.177 326.3);
Tailwind
colors: {
  custom: {
    50: '#ab68ab',
    500: '#842288',
    950: '#000000',
  },
}
SCSS
$custom: #842288;
$custom-light: #ab68ab;
$custom-dark: #000000;
JSON
{
  "hex": "#842288",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 297.647,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45105,
    "c": 0.17687,
    "h": 326.3
  },
  "luminance": 0.07827
}

Semantic roles & 50–950 ramp

primary
#842288
secondary
#53B74F
accent
#E3454B
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842288

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

Preview Lab → · Contrast checker → · Palette generator →

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