#7E2FC1#7E2FC1

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

Color values

HEX#7E2FC1
RGBrgb(126, 47, 193)
HSLhsl(272, 61%, 47%)
HSVhsv(272, 76%, 76%)
CMYKcmyk(34.7%, 75.6%, 0%, 24.3%)
CIE-LABlab(38.41, 59.08, -61.94)
CIE-LCHlch(38.41, 85.60, 313.65°)
OKLaboklab(49.57% 0.1192 -0.1765)
OKLCHoklch(49.57% 0.213 304)
XYZxyz(19.2441, 10.3190, 51.4197)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC1 #72C12F
analogous
#352FC1 #7E2FC1 #C12FBB
triadic
#7E2FC1 #C17E2F #2FC17E
tetradic
#7E2FC1 #C1352F #72C12F #2FBBC1
square
#7E2FC1 #C1352F #72C12F #2FBBC1
split-complementary
#7E2FC1 #BBC12F #2FC135
monochromatic
#3E175F #5E2390 #7E2FC1 #9C57D6 #B988E2

Accessibility & contrast

On white

6.85
#7E2FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2FC1
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC1#FFFFFF#000000##FFFFFF
##7E2FC11.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2fc1;
/* rgb */ color: rgb(126, 47, 193);
/* oklch */ color: oklch(49.6% 0.213 304.0);
Tailwind
colors: {
  custom: {
    50: '#a970d5',
    500: '#7e2fc1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc1;
$custom-light: #a970d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc1",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 272.466,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.21298,
    "h": 304
  },
  "luminance": 0.10319
}

Semantic roles & 50–950 ramp

primary
#7E2FC1
secondary
#A3CC80
accent
#E4448D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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