#7F42D2#7F42D2

#7F42D2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.209 H 298.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7F42D2
RGBrgb(127, 66, 210)
HSLhsl(265, 62%, 54%)
HSVhsv(265, 69%, 82%)
CMYKcmyk(39.5%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.86, 54.84, -64.57)
CIE-LCHlch(42.86, 84.71, 310.34°)
OKLaboklab(53.15% 0.0994 -0.1843)
OKLCHoklch(53.15% 0.209 298.3)
XYZxyz(22.3305, 13.0613, 62.3049)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42D2 #95D242
analogous
#424DD2 #7F42D2 #C742D2
triadic
#7F42D2 #D27F42 #42D27F
tetradic
#7F42D2 #D2424D #95D242 #42D2C7
square
#7F42D2 #D2424D #95D242 #42D2C7
split-complementary
#7F42D2 #D2C742 #4DD242
monochromatic
#461E7C #6129AD #7F42D2 #A073DE #C2A5EA

Accessibility & contrast

On white

5.81
#7F42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7F42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42D2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42D2#FFFFFF#000000##FFFFFF
##7F42D21.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#6B6585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f42d2;
/* rgb */ color: rgb(127, 66, 210);
/* oklch */ color: oklch(53.2% 0.209 298.3);
Tailwind
colors: {
  custom: {
    50: '#aa7be1',
    500: '#7f42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7f42d2;
$custom-light: #aa7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42d2",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 265.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53155,
    "c": 0.20936,
    "h": 298.3
  },
  "luminance": 0.13062
}

Semantic roles & 50–950 ramp

primary
#7F42D2
secondary
#BDD799
accent
#E543A0
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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