#842297#842297

#842297 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.190 H 320.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#842297
RGBrgb(132, 34, 151)
HSLhsl(290, 63%, 36%)
HSVhsv(290, 77%, 59%)
CMYKcmyk(12.6%, 77.5%, 0%, 40.8%)
CIE-LABlab(34.57, 56.21, -43.02)
CIE-LCHlch(34.57, 70.79, 322.57°)
OKLaboklab(46.08% 0.1462 -0.1206)
OKLCHoklch(46.08% 0.19 320.5)
XYZxyz(15.6730, 8.2848, 30.0457)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842297 #359722
analogous
#4A2297 #842297 #972270
triadic
#842297 #978422 #229784
tetradic
#842297 #974A22 #359722 #227097
square
#842297 #974A22 #359722 #227097
split-complementary
#842297 #709722 #22974A
monochromatic
#2D0C33 #581765 #842297 #B02DC9 #C55ADA

Accessibility & contrast

On white

7.90
#842297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#842297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842297
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842297#FFFFFF#000000##FFFFFF
##8422971.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2F5594
Tritanopia (blue-blind)
#853A5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842297;
/* rgb */ color: rgb(132, 34, 151);
/* oklch */ color: oklch(46.1% 0.190 320.5);
Tailwind
colors: {
  custom: {
    50: '#ac69b6',
    500: '#842297',
    950: '#000000',
  },
}
SCSS
$custom: #842297;
$custom-light: #ac69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#842297",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 290.256,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46082,
    "c": 0.1895,
    "h": 320.5
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#842297
secondary
#68BE57
accent
#E6425C
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842297

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

Preview Lab → · Contrast checker → · Palette generator →

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