#7E2FC5#7E2FC5

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

Color values

HEX#7E2FC5
RGBrgb(126, 47, 197)
HSLhsl(272, 61%, 48%)
HSVhsv(272, 76%, 77%)
CMYKcmyk(36%, 76.1%, 0%, 22.7%)
CIE-LABlab(38.73, 60.00, -63.76)
CIE-LCHlch(38.73, 87.55, 313.26°)
OKLaboklab(49.89% 0.1183 -0.1818)
OKLCHoklch(49.89% 0.217 303)
XYZxyz(19.6964, 10.4999, 53.8015)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC5 #76C52F
analogous
#332FC5 #7E2FC5 #C52FC1
triadic
#7E2FC5 #C57E2F #2FC57E
tetradic
#7E2FC5 #C5332F #76C52F #2FC1C5
square
#7E2FC5 #C5332F #76C52F #2FC1C5
split-complementary
#7E2FC5 #C1C52F #2FC533
monochromatic
#3F1762 #5E2394 #7E2FC5 #9C5AD8 #BA8BE3

Accessibility & contrast

On white

6.77
#7E2FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2FC5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC5#FFFFFF#000000##FFFFFF
##7E2FC51.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2fc5;
/* rgb */ color: rgb(126, 47, 197);
/* oklch */ color: oklch(49.9% 0.217 303.0);
Tailwind
colors: {
  custom: {
    50: '#aa70d8',
    500: '#7e2fc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc5;
$custom-light: #aa70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc5",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 271.6,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4989,
    "c": 0.21693,
    "h": 303
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#7E2FC5
secondary
#A6CD82
accent
#E54390
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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