#842295#842295

#842295 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.188 H 321.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#842295
RGBrgb(132, 34, 149)
HSLhsl(291, 63%, 36%)
HSVhsv(291, 77%, 58%)
CMYKcmyk(11.4%, 77.2%, 0%, 41.6%)
CIE-LABlab(34.44, 55.84, -42.01)
CIE-LCHlch(34.44, 69.88, 323.04°)
OKLaboklab(45.95% 0.1464 -0.1177)
OKLCHoklch(45.95% 0.188 321.2)
XYZxyz(15.5119, 8.2204, 29.1976)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842295 #339522
analogous
#4A2295 #842295 #95226C
triadic
#842295 #958422 #229584
tetradic
#842295 #954A22 #339522 #226C95
square
#842295 #954A22 #339522 #226C95
split-complementary
#842295 #6C9522 #22954A
monochromatic
#2C0B31 #581763 #842295 #B02DC7 #C658D9

Accessibility & contrast

On white

7.94
#842295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#842295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842295
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842295#FFFFFF#000000##FFFFFF
##8422951.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#85395B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842295;
/* rgb */ color: rgb(132, 34, 149);
/* oklch */ color: oklch(45.9% 0.188 321.2);
Tailwind
colors: {
  custom: {
    50: '#ab69b5',
    500: '#842295',
    950: '#000000',
  },
}
SCSS
$custom: #842295;
$custom-light: #ab69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#842295",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 291.13,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.1878,
    "h": 321.2
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#842295
secondary
#65BD56
accent
#E6425A
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842295

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

Preview Lab → · Contrast checker → · Palette generator →

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