#7E2FC0#7E2FC0

#7E2FC0 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.212 H 304.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2FC0
RGBrgb(126, 47, 192)
HSLhsl(273, 61%, 47%)
HSVhsv(273, 76%, 75%)
CMYKcmyk(34.4%, 75.5%, 0%, 24.7%)
CIE-LABlab(38.33, 58.85, -61.48)
CIE-LCHlch(38.33, 85.11, 313.75°)
OKLaboklab(49.49% 0.1195 -0.1751)
OKLCHoklch(49.49% 0.212 304.3)
XYZxyz(19.1329, 10.2745, 50.8342)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC0 #71C02F
analogous
#362FC0 #7E2FC0 #C02FB9
triadic
#7E2FC0 #C07E2F #2FC07E
tetradic
#7E2FC0 #C0362F #71C02F #2FB9C0
square
#7E2FC0 #C0362F #71C02F #2FB9C0
split-complementary
#7E2FC0 #B9C02F #2FC036
monochromatic
#3D175E #5E238F #7E2FC0 #9C56D6 #B988E2

Accessibility & contrast

On white

6.87
#7E2FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E2FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FC0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC0#FFFFFF#000000##FFFFFF
##7E2FC01.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#715476
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2fc0;
/* rgb */ color: rgb(126, 47, 192);
/* oklch */ color: oklch(49.5% 0.212 304.3);
Tailwind
colors: {
  custom: {
    50: '#a970d4',
    500: '#7e2fc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc0;
$custom-light: #a970d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc0",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 272.69,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4949,
    "c": 0.21199,
    "h": 304.3
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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