#7E2FB5#7E2FB5

#7E2FB5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.201 H 307.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB5
RGBrgb(126, 47, 181)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 71%)
CMYKcmyk(30.4%, 74%, 0%, 29%)
CIE-LABlab(37.49, 56.35, -56.37)
CIE-LCHlch(37.49, 79.71, 314.99°)
OKLaboklab(48.64% 0.1217 -0.1601)
OKLCHoklch(48.64% 0.201 307.2)
XYZxyz(17.9594, 9.8051, 44.6536)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB5 #66B52F
analogous
#3B2FB5 #7E2FB5 #B52FA9
triadic
#7E2FB5 #B57E2F #2FB57E
tetradic
#7E2FB5 #B53B2F #66B52F #2FA9B5
square
#7E2FB5 #B53B2F #66B52F #2FA9B5
split-complementary
#7E2FB5 #A9B52F #2FB53B
monochromatic
#3A1654 #5C2284 #7E2FB5 #9C50D1 #B880DE

Accessibility & contrast

On white

7.09
#7E2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB5#FFFFFF#000000##FFFFFF
##7E2FB51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#754F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2fb5;
/* rgb */ color: rgb(126, 47, 181);
/* oklch */ color: oklch(48.6% 0.201 307.2);
Tailwind
colors: {
  custom: {
    50: '#a86fcc',
    500: '#7e2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb5;
$custom-light: #a86fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb5",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 275.373,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48635,
    "c": 0.2011,
    "h": 307.2
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#7E2FB5
secondary
#99C779
accent
#E24686
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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