#7E2FC9#7E2FC9

#7E2FC9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.221 H 302.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7E2FC9
RGBrgb(126, 47, 201)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(37.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(39.05, 60.92, -65.57)
CIE-LCHlch(39.05, 89.50, 312.90°)
OKLaboklab(50.22% 0.1173 -0.1871)
OKLCHoklch(50.22% 0.221 302.1)
XYZxyz(20.1608, 10.6856, 56.2474)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FC9 #7AC92F
analogous
#312FC9 #7E2FC9 #C92FC7
triadic
#7E2FC9 #C97E2F #2FC97E
tetradic
#7E2FC9 #C9312F #7AC92F #2FC7C9
square
#7E2FC9 #C9312F #7AC92F #2FC7C9
split-complementary
#7E2FC9 #C7C92F #2FC931
monochromatic
#401866 #5F2397 #7E2FC9 #9C5CD9 #BA8EE5

Accessibility & contrast

On white

6.69
#7E2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7E2FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FC9
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FC9#FFFFFF#000000##FFFFFF
##7E2FC91.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6E577B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2fc9;
/* rgb */ color: rgb(126, 47, 201);
/* oklch */ color: oklch(50.2% 0.221 302.1);
Tailwind
colors: {
  custom: {
    50: '#aa70da',
    500: '#7e2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fc9;
$custom-light: #aa70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fc9",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 270.779,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50215,
    "c": 0.22089,
    "h": 302.1
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#7E2FC9
secondary
#A9CF85
accent
#E54392
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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