#7F42CF#7F42CF

#7F42CF is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.206 H 299.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7F42CF
RGBrgb(127, 66, 207)
HSLhsl(266, 59%, 54%)
HSVhsv(266, 68%, 81%)
CMYKcmyk(38.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.63, 54.09, -63.20)
CIE-LCHlch(42.63, 83.18, 310.56°)
OKLaboklab(52.93% 0.0998 -0.1803)
OKLCHoklch(52.93% 0.206 299)
XYZxyz(21.9603, 12.9132, 60.3549)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42CF #92CF42
analogous
#424BCF #7F42CF #C542CF
triadic
#7F42CF #CF7F42 #42CF7F
tetradic
#7F42CF #CF424B #92CF42 #42CFC5
square
#7F42CF #CF424B #92CF42 #42CFC5
split-complementary
#7F42CF #CFC542 #4BCF42
monochromatic
#451F78 #612BA9 #7F42CF #A073DB #C1A4E8

Accessibility & contrast

On white

5.86
#7F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42CF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42CF#FFFFFF#000000##FFFFFF
##7F42CF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#6C6483
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f42cf;
/* rgb */ color: rgb(127, 66, 207);
/* oklch */ color: oklch(52.9% 0.206 299.0);
Tailwind
colors: {
  custom: {
    50: '#aa7bdf',
    500: '#7f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f42cf;
$custom-light: #aa7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42cf",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 265.957,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.20605,
    "h": 299
  },
  "luminance": 0.12913
}

Semantic roles & 50–950 ramp

primary
#7F42CF
secondary
#BAD598
accent
#E3459F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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