#7F2EC1#7F2EC1

#7F2EC1 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.214 H 304.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7F2EC1
RGBrgb(127, 46, 193)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.2%, 76.2%, 0%, 24.3%)
CIE-LABlab(38.40, 59.65, -61.94)
CIE-LCHlch(38.40, 85.99, 313.92°)
OKLaboklab(49.6% 0.1215 -0.1764)
OKLCHoklch(49.6% 0.214 304.5)
XYZxyz(19.3528, 10.3164, 51.4134)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EC1 #70C12E
analogous
#362EC1 #7F2EC1 #C12EBA
triadic
#7F2EC1 #C17F2E #2EC17F
tetradic
#7F2EC1 #C1362E #70C12E #2EBAC1
square
#7F2EC1 #C1362E #70C12E #2EBAC1
split-complementary
#7F2EC1 #BAC12E #2EC136
monochromatic
#3E165E #5E2290 #7F2EC1 #9D56D7 #B987E2

Accessibility & contrast

On white

6.86
#7F2EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7F2EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2EC1
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EC1#FFFFFF#000000##FFFFFF
##7F2EC11.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#725376
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2ec1;
/* rgb */ color: rgb(127, 46, 193);
/* oklch */ color: oklch(49.6% 0.214 304.5);
Tailwind
colors: {
  custom: {
    50: '#aa6fd5',
    500: '#7f2ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ec1;
$custom-light: #aa6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ec1",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 273.061,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49595,
    "c": 0.21422,
    "h": 304.5
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#7F2EC1
secondary
#A1CC7F
accent
#E5438C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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