#842498#842498

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

Color values

HEX#842498
RGBrgb(132, 36, 152)
HSLhsl(290, 62%, 37%)
HSVhsv(290, 76%, 60%)
CMYKcmyk(13.2%, 76.3%, 0%, 40.4%)
CIE-LABlab(34.87, 55.72, -43.14)
CIE-LCHlch(34.87, 70.47, 322.25°)
OKLaboklab(46.32% 0.1442 -0.121)
OKLCHoklch(46.32% 0.188 320)
XYZxyz(15.8134, 8.4351, 30.4949)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842498 #389824
analogous
#4A2498 #842498 #982472
triadic
#842498 #988424 #249884
tetradic
#842498 #984A24 #389824 #247298
square
#842498 #984A24 #389824 #247298
split-complementary
#842498 #729824 #24984A
monochromatic
#2E0D35 #591867 #842498 #AF30C9 #C45ED9

Accessibility & contrast

On white

7.82
#842498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842498
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842498#FFFFFF#000000##FFFFFF
##8424981.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#2F5595
Tritanopia (blue-blind)
#843C5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842498;
/* rgb */ color: rgb(132, 36, 152);
/* oklch */ color: oklch(46.3% 0.188 320.0);
Tailwind
colors: {
  custom: {
    50: '#ab6ab7',
    500: '#842498',
    950: '#000000',
  },
}
SCSS
$custom: #842498;
$custom-light: #ab6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#842498",
  "rgb": {
    "r": 132,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 289.655,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.18827,
    "h": 320
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

primary
#842498
secondary
#6BBE5A
accent
#E5435F
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842498

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

Preview Lab → · Contrast checker → · Palette generator →

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