#842FAF#842FAF

#842FAF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 49.0% C 0.197 H 311.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#842FAF
RGBrgb(132, 47, 175)
HSLhsl(280, 58%, 44%)
HSVhsv(280, 73%, 69%)
CMYKcmyk(24.6%, 73.1%, 0%, 31.4%)
CIE-LABlab(37.90, 56.21, -52.10)
CIE-LCHlch(37.90, 76.64, 317.17°)
OKLaboklab(48.97% 0.1308 -0.1473)
OKLCHoklch(48.97% 0.197 311.6)
XYZxyz(18.2687, 10.0342, 41.5236)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FAF #5AAF2F
analogous
#442FAF #842FAF #AF2F9A
triadic
#842FAF #AF842F #2FAF84
tetradic
#842FAF #AF442F #5AAF2F #2F9AAF
square
#842FAF #AF442F #5AAF2F #2F9AAF
split-complementary
#842FAF #9AAF2F #2FAF44
monochromatic
#3B154F #60227F #842FAF #A34CCF #BC7CDC

Accessibility & contrast

On white

6.98
#842FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#842FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FAF
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FAF#FFFFFF#000000##FFFFFF
##842FAF1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1C5BAC
Tritanopia (blue-blind)
#7F4C6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842faf;
/* rgb */ color: rgb(132, 47, 175);
/* oklch */ color: oklch(49.0% 0.197 311.6);
Tailwind
colors: {
  custom: {
    50: '#ac70c8',
    500: '#842faf',
    950: '#000000',
  },
}
SCSS
$custom: #842faf;
$custom-light: #ac70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#842faf",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 279.844,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.197,
    "h": 311.6
  },
  "luminance": 0.10034
}

Semantic roles & 50–950 ramp

primary
#842FAF
secondary
#90C475
accent
#E1477B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#842FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva