#7E2FB0#7E2FB0

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

Color values

HEX#7E2FB0
RGBrgb(126, 47, 176)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 73%, 69%)
CMYKcmyk(28.4%, 73.3%, 0%, 31%)
CIE-LABlab(37.12, 55.24, -54.00)
CIE-LCHlch(37.12, 77.25, 315.65°)
OKLaboklab(48.26% 0.1226 -0.1531)
OKLCHoklch(48.26% 0.196 308.7)
XYZxyz(17.4556, 9.6035, 42.0000)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB0 #61B02F
analogous
#3D2FB0 #7E2FB0 #B02FA1
triadic
#7E2FB0 #B07E2F #2FB07E
tetradic
#7E2FB0 #B03D2F #61B02F #2FA1B0
square
#7E2FB0 #B03D2F #61B02F #2FA1B0
split-complementary
#7E2FB0 #A1B02F #2FB03D
monochromatic
#39154F #5B2280 #7E2FB0 #9D4DCF #B77DDC

Accessibility & contrast

On white

7.19
#7E2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB0
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB0#FFFFFF#000000##FFFFFF
##7E2FB01.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0758AD
Tritanopia (blue-blind)
#764D6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2fb0;
/* rgb */ color: rgb(126, 47, 176);
/* oklch */ color: oklch(48.3% 0.196 308.7);
Tailwind
colors: {
  custom: {
    50: '#a86fc8',
    500: '#7e2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb0;
$custom-light: #a86fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb0",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 276.744,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48257,
    "c": 0.19616,
    "h": 308.7
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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