#7E2FC2#7E2FC2

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

Color values

HEX#7E2FC2
RGBrgb(126, 47, 194)
HSLhsl(272, 61%, 47%)
HSVhsv(272, 76%, 76%)
CMYKcmyk(35.1%, 75.8%, 0%, 23.9%)
CIE-LABlab(38.49, 59.31, -62.40)
CIE-LCHlch(38.49, 86.09, 313.55°)
OKLaboklab(49.65% 0.119 -0.1778)
OKLCHoklch(49.65% 0.214 303.8)
XYZxyz(19.3560, 10.3637, 52.0091)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC2 #73C22F
analogous
#352FC2 #7E2FC2 #C22FBD
triadic
#7E2FC2 #C27E2F #2FC27E
tetradic
#7E2FC2 #C2352F #73C22F #2FBDC2
square
#7E2FC2 #C2352F #73C22F #2FBDC2
split-complementary
#7E2FC2 #BDC22F #2FC235
monochromatic
#3E175F #5E2391 #7E2FC2 #9C58D6 #B989E2

Accessibility & contrast

On white

6.83
#7E2FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2FC2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC2#FFFFFF#000000##FFFFFF
##7E2FC21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2fc2;
/* rgb */ color: rgb(126, 47, 194);
/* oklch */ color: oklch(49.6% 0.214 303.8);
Tailwind
colors: {
  custom: {
    50: '#a970d5',
    500: '#7e2fc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc2;
$custom-light: #a970d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc2",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 272.245,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49649,
    "c": 0.21396,
    "h": 303.8
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

primary
#7E2FC2
secondary
#A4CC81
accent
#E4448E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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