#7842DF#7842DF

#7842DF is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.5% C 0.223 H 293.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7842DF
RGBrgb(120, 66, 223)
HSLhsl(261, 71%, 57%)
HSVhsv(261, 70%, 87%)
CMYKcmyk(46.2%, 70.4%, 0%, 12.5%)
CIE-LABlab(43.09, 56.93, -71.67)
CIE-LCHlch(43.09, 91.53, 308.46°)
OKLaboklab(53.46% 0.0874 -0.2054)
OKLCHoklch(53.46% 0.223 293)
XYZxyz(23.0095, 13.2165, 71.1364)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842DF #A9DF42
analogous
#425BDF #7842DF #C742DF
triadic
#7842DF #DF7842 #42DF78
tetradic
#7842DF #DF425B #A9DF42 #42DFC7
square
#7842DF #DF425B #A9DF42 #42DFC7
split-complementary
#7842DF #DFC742 #5BDF42
monochromatic
#41188E #5921C3 #7842DF #9D76E8 #C3ABF1

Accessibility & contrast

On white

5.76
#7842DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7842DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842DF
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842DF#FFFFFF#000000##FFFFFF
##7842DF1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#0063DC
Tritanopia (blue-blind)
#596A8C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7842df;
/* rgb */ color: rgb(120, 66, 223);
/* oklch */ color: oklch(53.5% 0.223 293.0);
Tailwind
colors: {
  custom: {
    50: '#a77bea',
    500: '#7842df',
    950: '#000000',
  },
}
SCSS
$custom: #7842df;
$custom-light: #a77bea;
$custom-dark: #000000;
JSON
{
  "hex": "#7842df",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 260.637,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53458,
    "c": 0.22317,
    "h": 293
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#7842DF
secondary
#C8DF9E
accent
#EE3AB0
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7842DF

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

Preview Lab → · Contrast checker → · Palette generator →

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