#7F42CE#7F42CE

#7F42CE is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.8% C 0.205 H 299.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7F42CE
RGBrgb(127, 66, 206)
HSLhsl(266, 59%, 53%)
HSVhsv(266, 68%, 81%)
CMYKcmyk(38.3%, 68%, 0%, 19.2%)
CIE-LABlab(42.56, 53.84, -62.74)
CIE-LCHlch(42.56, 82.67, 310.63°)
OKLaboklab(52.85% 0.1 -0.1789)
OKLCHoklch(52.85% 0.205 299.2)
XYZxyz(21.8384, 12.8644, 59.7131)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42CE #91CE42
analogous
#424BCE #7F42CE #C542CE
triadic
#7F42CE #CE7F42 #42CE7F
tetradic
#7F42CE #CE424B #91CE42 #42CEC5
square
#7F42CE #CE424B #91CE42 #42CEC5
split-complementary
#7F42CE #CEC542 #4BCE42
monochromatic
#451F77 #612BA7 #7F42CE #A073DB #C1A3E7

Accessibility & contrast

On white

5.88
#7F42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7F42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42CE
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42CE#FFFFFF#000000##FFFFFF
##7F42CE1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#6D6383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f42ce;
/* rgb */ color: rgb(127, 66, 206);
/* oklch */ color: oklch(52.8% 0.205 299.2);
Tailwind
colors: {
  custom: {
    50: '#aa7bde',
    500: '#7f42ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f42ce;
$custom-light: #aa7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42ce",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 266.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52849,
    "c": 0.20495,
    "h": 299.2
  },
  "luminance": 0.12865
}

Semantic roles & 50–950 ramp

primary
#7F42CE
secondary
#BAD498
accent
#E2469E
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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