#842397#842397

#842397 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.188 H 320.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#842397
RGBrgb(132, 35, 151)
HSLhsl(290, 62%, 36%)
HSVhsv(290, 77%, 59%)
CMYKcmyk(12.6%, 76.8%, 0%, 40.8%)
CIE-LABlab(34.69, 55.87, -42.83)
CIE-LCHlch(34.69, 70.40, 322.53°)
OKLaboklab(46.17% 0.1453 -0.1201)
OKLCHoklch(46.17% 0.188 320.4)
XYZxyz(15.7020, 8.3428, 30.0554)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842397 #369723
analogous
#4A2397 #842397 #972370
triadic
#842397 #978423 #239784
tetradic
#842397 #974A23 #369723 #237097
square
#842397 #974A23 #369723 #237097
split-complementary
#842397 #709723 #23974A
monochromatic
#2D0C34 #591765 #842397 #AF2FC9 #C45BD9

Accessibility & contrast

On white

7.87
#842397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#842397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842397
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842397#FFFFFF#000000##FFFFFF
##8423971.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2F5594
Tritanopia (blue-blind)
#853B5C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842397;
/* rgb */ color: rgb(132, 35, 151);
/* oklch */ color: oklch(46.2% 0.188 320.4);
Tailwind
colors: {
  custom: {
    50: '#ab69b6',
    500: '#842397',
    950: '#000000',
  },
}
SCSS
$custom: #842397;
$custom-light: #ab69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#842397",
  "rgb": {
    "r": 132,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 290.172,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46166,
    "c": 0.18846,
    "h": 320.4
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#842397
secondary
#69BE58
accent
#E5425D
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842397

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

Preview Lab → · Contrast checker → · Palette generator →

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