#7E2FBE#7E2FBE

#7E2FBE is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.210 H 304.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7E2FBE
RGBrgb(126, 47, 190)
HSLhsl(273, 60%, 46%)
HSVhsv(273, 75%, 75%)
CMYKcmyk(33.7%, 75.3%, 0%, 25.5%)
CIE-LABlab(38.18, 58.39, -60.56)
CIE-LCHlch(38.18, 84.13, 313.96°)
OKLaboklab(49.33% 0.1199 -0.1724)
OKLCHoklch(49.33% 0.21 304.8)
XYZxyz(18.9129, 10.1865, 49.6750)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FBE #6FBE2F
analogous
#372FBE #7E2FBE #BE2FB7
triadic
#7E2FBE #BE7E2F #2FBE7E
tetradic
#7E2FBE #BE372F #6FBE2F #2FB7BE
square
#7E2FBE #BE372F #6FBE2F #2FB7BE
split-complementary
#7E2FBE #B7BE2F #2FBE37
monochromatic
#3D175C #5D238D #7E2FBE #9C55D5 #B886E1

Accessibility & contrast

On white

6.91
#7E2FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E2FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FBE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FBE#FFFFFF#000000##FFFFFF
##7E2FBE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#725375
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2fbe;
/* rgb */ color: rgb(126, 47, 190);
/* oklch */ color: oklch(49.3% 0.210 304.8);
Tailwind
colors: {
  custom: {
    50: '#a970d3',
    500: '#7e2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fbe;
$custom-light: #a970d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fbe",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 273.147,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49332,
    "c": 0.21001,
    "h": 304.8
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#7E2FBE
secondary
#A0CB7E
accent
#E3448C
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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