#7842AE#7842AE

#7842AE is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.167 H 303.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7842AE
RGBrgb(120, 66, 174)
HSLhsl(270, 45%, 47%)
HSVhsv(270, 62%, 68%)
CMYKcmyk(31%, 62.1%, 0%, 31.8%)
CIE-LABlab(39.49, 44.36, -49.03)
CIE-LCHlch(39.49, 66.12, 312.14°)
OKLaboklab(49.74% 0.0935 -0.1388)
OKLCHoklch(49.74% 0.167 303.9)
XYZxyz(17.3322, 10.9455, 41.2358)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842AE #78AE42
analogous
#4242AE #7842AE #AE42AE
triadic
#7842AE #AE7842 #42AE78
tetradic
#7842AE #AE4242 #78AE42 #42AEAE
square
#7842AE #AE4242 #78AE42 #42AEAE
split-complementary
#7842AE #AEAE42 #42AE42
monochromatic
#3B2055 #593182 #7842AE #9768C6 #B594D6

Accessibility & contrast

On white

6.59
#7842AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7842AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842AE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842AE#FFFFFF#000000##FFFFFF
##7842AE1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB1
Deuteranopia (green-blind)
#265DAC
Tritanopia (blue-blind)
#6E5872
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7842ae;
/* rgb */ color: rgb(120, 66, 174);
/* oklch */ color: oklch(49.7% 0.167 303.9);
Tailwind
colors: {
  custom: {
    50: '#a379c7',
    500: '#7842ae',
    950: '#000000',
  },
}
SCSS
$custom: #7842ae;
$custom-light: #a379c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7842ae",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 270,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49743,
    "c": 0.16737,
    "h": 303.9
  },
  "luminance": 0.10945
}

Semantic roles & 50–950 ramp

primary
#7842AE
secondary
#A6C28A
accent
#D55394
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7842AE

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

Preview Lab → · Contrast checker → · Palette generator →

#7842AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva