#7F2EC5#7F2EC5

#7F2EC5 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.218 H 303.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7F2EC5
RGBrgb(127, 46, 197)
HSLhsl(272, 62%, 48%)
HSVhsv(272, 77%, 77%)
CMYKcmyk(35.5%, 76.6%, 0%, 22.7%)
CIE-LABlab(38.72, 60.56, -63.76)
CIE-LCHlch(38.72, 87.94, 313.52°)
OKLaboklab(49.92% 0.1206 -0.1818)
OKLCHoklch(49.92% 0.218 303.5)
XYZxyz(19.8051, 10.4973, 53.7953)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EC5 #74C52E
analogous
#332EC5 #7F2EC5 #C52EC0
triadic
#7F2EC5 #C57F2E #2EC57F
tetradic
#7F2EC5 #C5332E #74C52E #2EC0C5
square
#7F2EC5 #C5332E #74C52E #2EC0C5
split-complementary
#7F2EC5 #C0C52E #2EC533
monochromatic
#3F1762 #5F2293 #7F2EC5 #9D58D8 #BA8AE4

Accessibility & contrast

On white

6.78
#7F2EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F2EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2EC5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EC5#FFFFFF#000000##FFFFFF
##7F2EC51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#715579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2ec5;
/* rgb */ color: rgb(127, 46, 197);
/* oklch */ color: oklch(49.9% 0.218 303.5);
Tailwind
colors: {
  custom: {
    50: '#aa70d8',
    500: '#7f2ec5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ec5;
$custom-light: #aa70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ec5",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 272.185,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49915,
    "c": 0.21814,
    "h": 303.5
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#7F2EC5
secondary
#A5CE81
accent
#E5438E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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