#7F2EC2#7F2EC2

#7F2EC2 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.215 H 304.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7F2EC2
RGBrgb(127, 46, 194)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.5%, 76.3%, 0%, 23.9%)
CIE-LABlab(38.48, 59.88, -62.40)
CIE-LCHlch(38.48, 86.48, 313.82°)
OKLaboklab(49.68% 0.1213 -0.1778)
OKLCHoklch(49.68% 0.215 304.3)
XYZxyz(19.4648, 10.3611, 52.0029)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EC2 #71C22E
analogous
#352EC2 #7F2EC2 #C22EBB
triadic
#7F2EC2 #C27F2E #2EC27F
tetradic
#7F2EC2 #C2352E #71C22E #2EBBC2
square
#7F2EC2 #C2352E #71C22E #2EBBC2
split-complementary
#7F2EC2 #BBC22E #2EC235
monochromatic
#3E175F #5F2291 #7F2EC2 #9D56D7 #BA88E3

Accessibility & contrast

On white

6.84
#7F2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2EC2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EC2#FFFFFF#000000##FFFFFF
##7F2EC21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#725477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2ec2;
/* rgb */ color: rgb(127, 46, 194);
/* oklch */ color: oklch(49.7% 0.215 304.3);
Tailwind
colors: {
  custom: {
    50: '#aa70d5',
    500: '#7f2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ec2;
$custom-light: #aa70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ec2",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 272.838,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49675,
    "c": 0.2152,
    "h": 304.3
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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