#842597#842597

#842597 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.186 H 320.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#842597
RGBrgb(132, 37, 151)
HSLhsl(290, 61%, 37%)
HSVhsv(290, 75%, 59%)
CMYKcmyk(12.6%, 75.5%, 0%, 40.8%)
CIE-LABlab(34.93, 55.17, -42.44)
CIE-LCHlch(34.93, 69.61, 322.43°)
OKLaboklab(46.34% 0.1434 -0.1189)
OKLCHoklch(46.34% 0.186 320.3)
XYZxyz(15.7625, 8.4639, 30.0756)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842597 #389725
analogous
#4B2597 #842597 #972571
triadic
#842597 #978425 #259784
tetradic
#842597 #974B25 #389725 #257197
square
#842597 #974B25 #389725 #257197
split-complementary
#842597 #719725 #25974B
monochromatic
#2E0D35 #591966 #842597 #AF31C8 #C45FD8

Accessibility & contrast

On white

7.80
#842597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#842597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842597
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842597#FFFFFF#000000##FFFFFF
##8425971.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#853C5C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842597;
/* rgb */ color: rgb(132, 37, 151);
/* oklch */ color: oklch(46.3% 0.186 320.3);
Tailwind
colors: {
  custom: {
    50: '#ab6ab6',
    500: '#842597',
    950: '#000000',
  },
}
SCSS
$custom: #842597;
$custom-light: #ab6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#842597",
  "rgb": {
    "r": 132,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 290,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46339,
    "c": 0.18631,
    "h": 320.3
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#842597
secondary
#6BBD5B
accent
#E4445F
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842597

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

Preview Lab → · Contrast checker → · Palette generator →

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