#842298#842298

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

Color values

HEX#842298
RGBrgb(132, 34, 152)
HSLhsl(290, 63%, 36%)
HSVhsv(290, 78%, 60%)
CMYKcmyk(13.2%, 77.6%, 0%, 40.4%)
CIE-LABlab(34.64, 56.40, -43.52)
CIE-LCHlch(34.64, 71.24, 322.34°)
OKLaboklab(46.15% 0.146 -0.1221)
OKLCHoklch(46.15% 0.19 320.1)
XYZxyz(15.7545, 8.3174, 30.4752)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842298 #369822
analogous
#492298 #842298 #982271
triadic
#842298 #988422 #229884
tetradic
#842298 #984922 #369822 #227198
square
#842298 #984922 #369822 #227198
split-complementary
#842298 #719822 #229849
monochromatic
#2D0C34 #591766 #842298 #AF2DCA #C45ADA

Accessibility & contrast

On white

7.88
#842298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842298
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842298#FFFFFF#000000##FFFFFF
##8422981.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#2E5595
Tritanopia (blue-blind)
#843B5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842298;
/* rgb */ color: rgb(132, 34, 152);
/* oklch */ color: oklch(46.2% 0.190 320.1);
Tailwind
colors: {
  custom: {
    50: '#ac69b7',
    500: '#842298',
    950: '#000000',
  },
}
SCSS
$custom: #842298;
$custom-light: #ac69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#842298",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 289.831,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.19036,
    "h": 320.1
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#842298
secondary
#69BE57
accent
#E6415D
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842298

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

Preview Lab → · Contrast checker → · Palette generator →

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