#842497#842497

#842497 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.187 H 320.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#842497
RGBrgb(132, 36, 151)
HSLhsl(290, 61%, 37%)
HSVhsv(290, 76%, 59%)
CMYKcmyk(12.6%, 76.2%, 0%, 40.8%)
CIE-LABlab(34.81, 55.53, -42.64)
CIE-LCHlch(34.81, 70.01, 322.48°)
OKLaboklab(46.25% 0.1443 -0.1195)
OKLCHoklch(46.25% 0.187 320.4)
XYZxyz(15.7318, 8.4025, 30.0653)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842497 #379724
analogous
#4B2497 #842497 #972471
triadic
#842497 #978424 #249784
tetradic
#842497 #974B24 #379724 #247197
square
#842497 #974B24 #379724 #247197
split-complementary
#842497 #719724 #24974B
monochromatic
#2E0C34 #591866 #842497 #AF30C8 #C45DD8

Accessibility & contrast

On white

7.83
#842497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#842497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842497
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842497#FFFFFF#000000##FFFFFF
##8424971.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842497;
/* rgb */ color: rgb(132, 36, 151);
/* oklch */ color: oklch(46.3% 0.187 320.4);
Tailwind
colors: {
  custom: {
    50: '#ab6ab6',
    500: '#842497',
    950: '#000000',
  },
}
SCSS
$custom: #842497;
$custom-light: #ab6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#842497",
  "rgb": {
    "r": 132,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 290.087,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46251,
    "c": 0.1874,
    "h": 320.4
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#842497
secondary
#6ABD5A
accent
#E5435E
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842497

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

Preview Lab → · Contrast checker → · Palette generator →

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