#7E2FB2#7E2FB2

#7E2FB2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.198 H 308.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB2
RGBrgb(126, 47, 178)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.2%, 73.6%, 0%, 30.2%)
CIE-LABlab(37.27, 55.68, -54.95)
CIE-LCHlch(37.27, 78.23, 315.38°)
OKLaboklab(48.41% 0.1222 -0.1559)
OKLCHoklch(48.41% 0.198 308.1)
XYZxyz(17.6549, 9.6833, 43.0498)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB2 #63B22F
analogous
#3D2FB2 #7E2FB2 #B22FA5
triadic
#7E2FB2 #B27E2F #2FB27E
tetradic
#7E2FB2 #B23D2F #63B22F #2FA5B2
square
#7E2FB2 #B23D2F #63B22F #2FA5B2
split-complementary
#7E2FB2 #A5B22F #2FB23D
monochromatic
#391551 #5C2282 #7E2FB2 #9D4ED0 #B77EDD

Accessibility & contrast

On white

7.15
#7E2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB2#FFFFFF#000000##FFFFFF
##7E2FB21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#764E6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2fb2;
/* rgb */ color: rgb(126, 47, 178);
/* oklch */ color: oklch(48.4% 0.198 308.1);
Tailwind
colors: {
  custom: {
    50: '#a86fca',
    500: '#7e2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb2;
$custom-light: #a86fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb2",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 276.183,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48407,
    "c": 0.19814,
    "h": 308.1
  },
  "luminance": 0.09683
}

Semantic roles & 50–950 ramp

primary
#7E2FB2
secondary
#96C677
accent
#E14684
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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