#7F42D5#7F42D5

#7F42D5 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.213 H 297.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7F42D5
RGBrgb(127, 66, 213)
HSLhsl(265, 64%, 55%)
HSVhsv(265, 69%, 84%)
CMYKcmyk(40.4%, 69%, 0%, 16.5%)
CIE-LABlab(43.08, 55.59, -65.92)
CIE-LCHlch(43.08, 86.23, 310.14°)
OKLaboklab(53.39% 0.0989 -0.1883)
OKLCHoklch(53.39% 0.213 297.7)
XYZxyz(22.7078, 13.2122, 64.2917)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42D5 #98D542
analogous
#424FD5 #7F42D5 #C842D5
triadic
#7F42D5 #D57F42 #42D57F
tetradic
#7F42D5 #D5424F #98D542 #42D5C8
square
#7F42D5 #D5424F #98D542 #42D5C8
split-complementary
#7F42D5 #D5C842 #4FD542
monochromatic
#461C80 #6128B2 #7F42D5 #A174E0 #C3A6EB

Accessibility & contrast

On white

5.77
#7F42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7F42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42D5
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42D5#FFFFFF#000000##FFFFFF
##7F42D51.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#6A6687
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f42d5;
/* rgb */ color: rgb(127, 66, 213);
/* oklch */ color: oklch(53.4% 0.213 297.7);
Tailwind
colors: {
  custom: {
    50: '#ab7be3',
    500: '#7f42d5',
    950: '#000000',
  },
}
SCSS
$custom: #7f42d5;
$custom-light: #ab7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42d5",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 264.898,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53387,
    "c": 0.21265,
    "h": 297.7
  },
  "luminance": 0.13213
}

Semantic roles & 50–950 ramp

primary
#7F42D5
secondary
#BFD89A
accent
#E741A2
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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