#7E2FCA#7E2FCA

#7E2FCA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.222 H 301.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7E2FCA
RGBrgb(126, 47, 202)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(37.6%, 76.7%, 0%, 20.8%)
CIE-LABlab(39.13, 61.16, -66.02)
CIE-LCHlch(39.13, 89.99, 312.81°)
OKLaboklab(50.3% 0.1171 -0.1885)
OKLCHoklch(50.3% 0.222 301.8)
XYZxyz(20.2788, 10.7328, 56.8689)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FCA #7BCA2F
analogous
#312FCA #7E2FCA #CA2FC9
triadic
#7E2FCA #CA7E2F #2FCA7E
tetradic
#7E2FCA #CA312F #7BCA2F #2FC9CA
square
#7E2FCA #CA312F #7BCA2F #2FC9CA
split-complementary
#7E2FCA #C9CA2F #2FCA31
monochromatic
#401867 #5F2398 #7E2FCA #9C5DD9 #BB8FE5

Accessibility & contrast

On white

6.67
#7E2FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7E2FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FCA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FCA#FFFFFF#000000##FFFFFF
##7E2FCA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6D587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2fca;
/* rgb */ color: rgb(126, 47, 202);
/* oklch */ color: oklch(50.3% 0.222 301.8);
Tailwind
colors: {
  custom: {
    50: '#aa70db',
    500: '#7e2fca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fca;
$custom-light: #aa70db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fca",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 270.581,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50297,
    "c": 0.22188,
    "h": 301.8
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#7E2FCA
secondary
#AACF86
accent
#E54292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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