#7A42DF#7A42DF

#7A42DF is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.223 H 293.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7A42DF
RGBrgb(122, 66, 223)
HSLhsl(261, 71%, 57%)
HSVhsv(261, 70%, 87%)
CMYKcmyk(45.3%, 70.4%, 0%, 12.5%)
CIE-LABlab(43.30, 57.27, -71.31)
CIE-LCHlch(43.30, 91.46, 308.77°)
OKLaboklab(53.66% 0.0901 -0.2042)
OKLCHoklch(53.66% 0.223 293.8)
XYZxyz(23.2899, 13.3610, 71.1496)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42DF #A7DF42
analogous
#4259DF #7A42DF #C842DF
triadic
#7A42DF #DF7A42 #42DF7A
tetradic
#7A42DF #DF4259 #A7DF42 #42DFC8
square
#7A42DF #DF4259 #A7DF42 #42DFC8
split-complementary
#7A42DF #DFC842 #59DF42
monochromatic
#42188E #5B21C3 #7A42DF #9F76E8 #C4ABF1

Accessibility & contrast

On white

5.72
#7A42DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#7A42DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42DF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42DF#FFFFFF#000000##FFFFFF
##7A42DF1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#0064DC
Tritanopia (blue-blind)
#5D6A8C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7a42df;
/* rgb */ color: rgb(122, 66, 223);
/* oklch */ color: oklch(53.7% 0.223 293.8);
Tailwind
colors: {
  custom: {
    50: '#a97bea',
    500: '#7a42df',
    950: '#000000',
  },
}
SCSS
$custom: #7a42df;
$custom-light: #a97bea;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42df",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 261.401,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5366,
    "c": 0.22326,
    "h": 293.8
  },
  "luminance": 0.13362
}

Semantic roles & 50–950 ramp

primary
#7A42DF
secondary
#C8DF9E
accent
#EE3AAE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7A42DF

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

Preview Lab → · Contrast checker → · Palette generator →

#7A42DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva