#7E2FC8#7E2FC8

#7E2FC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.220 H 302.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7E2FC8
RGBrgb(126, 47, 200)
HSLhsl(271, 62%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37%, 76.5%, 0%, 21.6%)
CIE-LABlab(38.97, 60.69, -65.12)
CIE-LCHlch(38.97, 89.02, 312.98°)
OKLaboklab(50.13% 0.1176 -0.1858)
OKLCHoklch(50.13% 0.22 302.3)
XYZxyz(20.0435, 10.6387, 55.6299)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC8 #79C82F
analogous
#312FC8 #7E2FC8 #C82FC5
triadic
#7E2FC8 #C87E2F #2FC87E
tetradic
#7E2FC8 #C8312F #79C82F #2FC5C8
square
#7E2FC8 #C8312F #79C82F #2FC5C8
split-complementary
#7E2FC8 #C5C82F #2FC831
monochromatic
#401865 #5F2396 #7E2FC8 #9C5CD9 #BA8DE4

Accessibility & contrast

On white

6.71
#7E2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FC8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC8#FFFFFF#000000##FFFFFF
##7E2FC81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6E577A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2fc8;
/* rgb */ color: rgb(126, 47, 200);
/* oklch */ color: oklch(50.1% 0.220 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa70da',
    500: '#7e2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc8;
$custom-light: #aa70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc8",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 270.98,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50133,
    "c": 0.21989,
    "h": 302.3
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#7E2FC8
secondary
#A8CF84
accent
#E54391
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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