#7F42D0#7F42D0

#7F42D0 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.207 H 298.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F42D0
RGBrgb(127, 66, 208)
HSLhsl(266, 60%, 54%)
HSVhsv(266, 68%, 82%)
CMYKcmyk(38.9%, 68.3%, 0%, 18.4%)
CIE-LABlab(42.71, 54.34, -63.66)
CIE-LCHlch(42.71, 83.69, 310.48°)
OKLaboklab(53% 0.0997 -0.1816)
OKLCHoklch(53% 0.207 298.8)
XYZxyz(22.0829, 12.9622, 61.0008)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42D0 #93D042
analogous
#424CD0 #7F42D0 #C642D0
triadic
#7F42D0 #D07F42 #42D07F
tetradic
#7F42D0 #D0424C #93D042 #42D0C6
square
#7F42D0 #D0424C #93D042 #42D0C6
split-complementary
#7F42D0 #D0C642 #4CD042
monochromatic
#451E79 #612AAA #7F42D0 #A073DC #C1A4E8

Accessibility & contrast

On white

5.85
#7F42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7F42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42D0
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42D0#FFFFFF#000000##FFFFFF
##7F42D01.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#0063CD
Tritanopia (blue-blind)
#6C6484
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f42d0;
/* rgb */ color: rgb(127, 66, 208);
/* oklch */ color: oklch(53.0% 0.207 298.8);
Tailwind
colors: {
  custom: {
    50: '#aa7bdf',
    500: '#7f42d0',
    950: '#000000',
  },
}
SCSS
$custom: #7f42d0;
$custom-light: #aa7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42d0",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 265.775,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53002,
    "c": 0.20715,
    "h": 298.8
  },
  "luminance": 0.12963
}

Semantic roles & 50–950 ramp

primary
#7F42D0
secondary
#BBD599
accent
#E3449F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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