#7E2EB0#7E2EB0

#7E2EB0 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.197 H 308.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2EB0
RGBrgb(126, 46, 176)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 69%)
CMYKcmyk(28.4%, 73.9%, 0%, 31%)
CIE-LABlab(36.98, 55.65, -54.24)
CIE-LCHlch(36.98, 77.71, 315.74°)
OKLaboklab(48.15% 0.1236 -0.1538)
OKLCHoklch(48.15% 0.197 308.8)
XYZxyz(17.4161, 9.5245, 41.9868)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EB0 #60B02E
analogous
#3D2EB0 #7E2EB0 #B02EA1
triadic
#7E2EB0 #B07E2E #2EB07E
tetradic
#7E2EB0 #B03D2E #60B02E #2EA1B0
square
#7E2EB0 #B03D2E #60B02E #2EA1B0
split-complementary
#7E2EB0 #A1B02E #2EB03D
monochromatic
#39154F #5B217F #7E2EB0 #9D4BD0 #B77CDD

Accessibility & contrast

On white

7.23
#7E2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7E2EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EB0
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EB0#FFFFFF#000000##FFFFFF
##7E2EB01.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2eb0;
/* rgb */ color: rgb(126, 46, 176);
/* oklch */ color: oklch(48.2% 0.197 308.8);
Tailwind
colors: {
  custom: {
    50: '#a86fc8',
    500: '#7e2eb0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eb0;
$custom-light: #a86fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eb0",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 276.923,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48154,
    "c": 0.1973,
    "h": 308.8
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#7E2EB0
secondary
#94C575
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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