#842299#842299

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

Color values

HEX#842299
RGBrgb(132, 34, 153)
HSLhsl(289, 64%, 37%)
HSVhsv(289, 78%, 60%)
CMYKcmyk(13.7%, 77.8%, 0%, 40%)
CIE-LABlab(34.70, 56.59, -44.03)
CIE-LCHlch(34.70, 71.70, 322.12°)
OKLaboklab(46.22% 0.1459 -0.1236)
OKLCHoklch(46.22% 0.191 319.7)
XYZxyz(15.8368, 8.3503, 30.9084)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842299 #379922
analogous
#492299 #842299 #992273
triadic
#842299 #998422 #229984
tetradic
#842299 #994922 #379922 #227399
square
#842299 #994922 #379922 #227399
split-complementary
#842299 #739922 #229949
monochromatic
#2E0C35 #591767 #842299 #AF2DCB #C45BDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842299#FFFFFF#000000##FFFFFF
##8422991.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)
#004B9C
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#843B5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842299;
/* rgb */ color: rgb(132, 34, 153);
/* oklch */ color: oklch(46.2% 0.191 319.7);
Tailwind
colors: {
  custom: {
    50: '#ac69b8',
    500: '#842299',
    950: '#000000',
  },
}
SCSS
$custom: #842299;
$custom-light: #ac69b8;
$custom-dark: #000000;
JSON
{
  "hex": "#842299",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 289.412,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46219,
    "c": 0.19122,
    "h": 319.7
  },
  "luminance": 0.08349
}

Semantic roles & 50–950 ramp

primary
#842299
secondary
#6ABF58
accent
#E7415E
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842299

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

Preview Lab → · Contrast checker → · Palette generator →

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