#7E2FB1#7E2FB1

#7E2FB1 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.197 H 308.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB1
RGBrgb(126, 47, 177)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 69%)
CMYKcmyk(28.8%, 73.4%, 0%, 30.6%)
CIE-LABlab(37.19, 55.46, -54.48)
CIE-LCHlch(37.19, 77.74, 315.51°)
OKLaboklab(48.33% 0.1224 -0.1545)
OKLCHoklch(48.33% 0.197 308.4)
XYZxyz(17.5549, 9.6433, 42.5230)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB1 #62B12F
analogous
#3D2FB1 #7E2FB1 #B12FA3
triadic
#7E2FB1 #B17E2F #2FB17E
tetradic
#7E2FB1 #B13D2F #62B12F #2FA3B1
square
#7E2FB1 #B13D2F #62B12F #2FA3B1
split-complementary
#7E2FB1 #A3B12F #2FB13D
monochromatic
#391550 #5C2281 #7E2FB1 #9D4DD0 #B77EDD

Accessibility & contrast

On white

7.17
#7E2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB1#FFFFFF#000000##FFFFFF
##7E2FB11.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0358AE
Tritanopia (blue-blind)
#764D6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2fb1;
/* rgb */ color: rgb(126, 47, 177);
/* oklch */ color: oklch(48.3% 0.197 308.4);
Tailwind
colors: {
  custom: {
    50: '#a86fc9',
    500: '#7e2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb1;
$custom-light: #a86fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb1",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 276.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48332,
    "c": 0.19715,
    "h": 308.4
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#7E2FB1
secondary
#95C576
accent
#E14783
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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