#7D42E5#7D42E5

#7D42E5 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.230 H 293.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7D42E5
RGBrgb(125, 66, 229)
HSLhsl(262, 76%, 58%)
HSVhsv(262, 71%, 90%)
CMYKcmyk(45.4%, 71.2%, 0%, 10.2%)
CIE-LABlab(44.11, 59.32, -73.39)
CIE-LCHlch(44.11, 94.37, 308.95°)
OKLaboklab(54.46% 0.0932 -0.2103)
OKLCHoklch(54.46% 0.23 293.9)
XYZxyz(24.5446, 13.9128, 75.5058)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42E5 #AAE542
analogous
#4258E5 #7D42E5 #CF42E5
triadic
#7D42E5 #E57D42 #42E57D
tetradic
#7D42E5 #E54258 #AAE542 #42E5CF
square
#7D42E5 #E54258 #AAE542 #42E5CF
split-complementary
#7D42E5 #E5CF42 #58E542
monochromatic
#441598 #5C1CCE #7D42E5 #A278EC #C7AEF4

Accessibility & contrast

On white

5.55
#7D42E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7D42E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42E5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42E5#FFFFFF#000000##FFFFFF
##7D42E51.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AEA
Deuteranopia (green-blind)
#0065E2
Tritanopia (blue-blind)
#5F6C8F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d42e5;
/* rgb */ color: rgb(125, 66, 229);
/* oklch */ color: oklch(54.5% 0.230 293.9);
Tailwind
colors: {
  custom: {
    50: '#ab7bee',
    500: '#7d42e5',
    950: '#000000',
  },
}
SCSS
$custom: #7d42e5;
$custom-light: #ab7bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42e5",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 261.718,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.22998,
    "h": 293.9
  },
  "luminance": 0.13914
}

Semantic roles & 50–950 ramp

primary
#7D42E5
secondary
#CAE2A1
accent
#F235AE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7D42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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