#7F2ED7#7F2ED7

#7F2ED7 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.4% C 0.236 H 299.4°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7F2ED7
RGBrgb(127, 46, 215)
HSLhsl(269, 68%, 51%)
HSVhsv(269, 79%, 84%)
CMYKcmyk(40.9%, 78.6%, 0%, 15.7%)
CIE-LABlab(40.20, 64.72, -71.78)
CIE-LCHlch(40.20, 96.64, 312.04°)
OKLaboklab(51.41% 0.1158 -0.2053)
OKLCHoklch(51.41% 0.236 299.4)
XYZxyz(21.9920, 11.3720, 65.3132)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ED7 #86D72E
analogous
#2E31D7 #7F2ED7 #D32ED7
triadic
#7F2ED7 #D77F2E #2ED77F
tetradic
#7F2ED7 #D72E31 #86D72E #2ED7D3
square
#7F2ED7 #D72E31 #86D72E #2ED7D3
split-complementary
#7F2ED7 #D7D32E #31D72E
monochromatic
#431674 #6120A8 #7F2ED7 #9E61E1 #BE95EB

Accessibility & contrast

On white

6.41
#7F2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7F2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2ED7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ED7#FFFFFF#000000##FFFFFF
##7F2ED71.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#6A5D83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f2ed7;
/* rgb */ color: rgb(127, 46, 215);
/* oklch */ color: oklch(51.4% 0.236 299.4);
Tailwind
colors: {
  custom: {
    50: '#ac71e5',
    500: '#7f2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ed7;
$custom-light: #ac71e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ed7",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 268.757,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51406,
    "c": 0.23572,
    "h": 299.4
  },
  "luminance": 0.11372
}

Semantic roles & 50–950 ramp

primary
#7F2ED7
secondary
#B2D68B
accent
#EB3D97
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7F2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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