#7E2EA8#7E2EA8

#7E2EA8 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.189 H 311.2°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA8
RGBrgb(126, 46, 168)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 73%, 66%)
CMYKcmyk(25%, 72.6%, 0%, 34.1%)
CIE-LABlab(36.40, 53.89, -50.39)
CIE-LCHlch(36.40, 73.79, 316.92°)
OKLaboklab(47.56% 0.1248 -0.1425)
OKLCHoklch(47.56% 0.189 311.2)
XYZxyz(16.6477, 9.2172, 37.9403)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA8 #58A82E
analogous
#412EA8 #7E2EA8 #A82E95
triadic
#7E2EA8 #A87E2E #2EA87E
tetradic
#7E2EA8 #A8412E #58A82E #2E95A8
square
#7E2EA8 #A8412E #58A82E #2E95A8
split-complementary
#7E2EA8 #95A82E #2EA841
monochromatic
#361448 #5A2178 #7E2EA8 #9E47CD #B877DA

Accessibility & contrast

On white

7.39
#7E2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA8
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA8#FFFFFF#000000##FFFFFF
##7E2EA81.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1B57A5
Tritanopia (blue-blind)
#794968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2ea8;
/* rgb */ color: rgb(126, 46, 168);
/* oklch */ color: oklch(47.6% 0.189 311.2);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7e2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea8;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea8",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 279.344,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47564,
    "c": 0.18946,
    "h": 311.2
  },
  "luminance": 0.09217
}

Semantic roles & 50–950 ramp

primary
#7E2EA8
secondary
#8CC270
accent
#E0487C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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