#7F42DA#7F42DA

#7F42DA is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.218 H 296.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7F42DA
RGBrgb(127, 66, 218)
HSLhsl(264, 67%, 56%)
HSVhsv(264, 70%, 85%)
CMYKcmyk(41.7%, 69.7%, 0%, 14.5%)
CIE-LABlab(43.46, 56.85, -68.17)
CIE-LCHlch(43.46, 88.77, 309.83°)
OKLaboklab(53.78% 0.098 -0.1949)
OKLCHoklch(53.78% 0.218 296.7)
XYZxyz(23.3522, 13.4699, 67.6857)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42DA #9DDA42
analogous
#4251DA #7F42DA #CB42DA
triadic
#7F42DA #DA7F42 #42DA7F
tetradic
#7F42DA #DA4251 #9DDA42 #42DACB
square
#7F42DA #DA4251 #9DDA42 #42DACB
split-complementary
#7F42DA #DACB42 #51DA42
monochromatic
#461A87 #6124BA #7F42DA #A275E4 #C4A8EE

Accessibility & contrast

On white

5.68
#7F42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7F42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42DA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42DA#FFFFFF#000000##FFFFFF
##7F42DA1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DE
Deuteranopia (green-blind)
#0065D7
Tritanopia (blue-blind)
#676889
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f42da;
/* rgb */ color: rgb(127, 66, 218);
/* oklch */ color: oklch(53.8% 0.218 296.7);
Tailwind
colors: {
  custom: {
    50: '#ab7be6',
    500: '#7f42da',
    950: '#000000',
  },
}
SCSS
$custom: #7f42da;
$custom-light: #ab7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42da",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 264.079,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53778,
    "c": 0.21813,
    "h": 296.7
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#7F42DA
secondary
#C2DB9C
accent
#EA3EA5
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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