#842FC9#842FC9

#842FC9 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.222 H 304.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#842FC9
RGBrgb(132, 47, 201)
HSLhsl(273, 62%, 49%)
HSVhsv(273, 77%, 79%)
CMYKcmyk(34.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(39.84, 61.92, -64.24)
CIE-LCHlch(39.84, 89.22, 313.95°)
OKLaboklab(50.94% 0.1257 -0.183)
OKLCHoklch(50.94% 0.222 304.5)
XYZxyz(21.0724, 11.1557, 56.2901)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC9 #74C92F
analogous
#372FC9 #842FC9 #C92FC1
triadic
#842FC9 #C9842F #2FC984
tetradic
#842FC9 #C9372F #74C92F #2FC1C9
square
#842FC9 #C9372F #74C92F #2FC1C9
split-complementary
#842FC9 #C1C92F #2FC937
monochromatic
#431866 #632397 #842FC9 #A15CD9 #BE8EE5

Accessibility & contrast

On white

6.50
#842FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#842FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC9
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC9#FFFFFF#000000##FFFFFF
##842FC91.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#77577B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #842fc9;
/* rgb */ color: rgb(132, 47, 201);
/* oklch */ color: oklch(50.9% 0.222 304.5);
Tailwind
colors: {
  custom: {
    50: '#ae71da',
    500: '#842fc9',
    950: '#000000',
  },
}
SCSS
$custom: #842fc9;
$custom-light: #ae71da;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc9",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 273.117,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50942,
    "c": 0.22205,
    "h": 304.5
  },
  "luminance": 0.11156
}

Semantic roles & 50–950 ramp

primary
#842FC9
secondary
#A6CF85
accent
#E5438B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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