#842897#842897

#842897 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.183 H 320.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#842897
RGBrgb(132, 40, 151)
HSLhsl(290, 58%, 37%)
HSVhsv(290, 74%, 59%)
CMYKcmyk(12.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(35.32, 54.07, -41.82)
CIE-LCHlch(35.32, 68.35, 322.28°)
OKLaboklab(46.61% 0.1405 -0.1171)
OKLCHoklch(46.61% 0.183 320.2)
XYZxyz(15.8597, 8.6583, 30.1080)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842897 #3B9728
analogous
#4D2897 #842897 #972872
triadic
#842897 #978428 #289784
tetradic
#842897 #974D28 #3B9728 #287297
square
#842897 #974D28 #3B9728 #287297
split-complementary
#842897 #729728 #28974D
monochromatic
#2F0E36 #5A1B67 #842897 #AE35C7 #C264D6

Accessibility & contrast

On white

7.69
#842897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#842897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842897
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842897#FFFFFF#000000##FFFFFF
##8428971.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#325694
Tritanopia (blue-blind)
#853D5D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842897;
/* rgb */ color: rgb(132, 40, 151);
/* oklch */ color: oklch(46.6% 0.183 320.2);
Tailwind
colors: {
  custom: {
    50: '#ab6bb6',
    500: '#842897',
    950: '#000000',
  },
}
SCSS
$custom: #842897;
$custom-light: #ab6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#842897",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 289.73,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46614,
    "c": 0.1829,
    "h": 320.2
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#842897
secondary
#6FBC5F
accent
#E14661
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842897

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

Preview Lab → · Contrast checker → · Palette generator →

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