#7E2EAF#7E2EAF

#7E2EAF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.196 H 309.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7E2EAF
RGBrgb(126, 46, 175)
HSLhsl(277, 58%, 43%)
HSVhsv(277, 74%, 69%)
CMYKcmyk(28%, 73.7%, 0%, 31.4%)
CIE-LABlab(36.90, 55.43, -53.76)
CIE-LCHlch(36.90, 77.22, 315.88°)
OKLaboklab(48.08% 0.1237 -0.1524)
OKLCHoklch(48.08% 0.196 309.1)
XYZxyz(17.3175, 9.4851, 41.4677)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EAF #5FAF2E
analogous
#3D2EAF #7E2EAF #AF2E9F
triadic
#7E2EAF #AF7E2E #2EAF7E
tetradic
#7E2EAF #AF3D2E #5FAF2E #2E9FAF
square
#7E2EAF #AF3D2E #5FAF2E #2E9FAF
split-complementary
#7E2EAF #9FAF2E #2EAF3D
monochromatic
#38154E #5B217F #7E2EAF #9D4BD0 #B77BDC

Accessibility & contrast

On white

7.25
#7E2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2EAF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EAF#FFFFFF#000000##FFFFFF
##7E2EAF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0858AC
Tritanopia (blue-blind)
#774C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2eaf;
/* rgb */ color: rgb(126, 46, 175);
/* oklch */ color: oklch(48.1% 0.196 309.1);
Tailwind
colors: {
  custom: {
    50: '#a86fc8',
    500: '#7e2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eaf;
$custom-light: #a86fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eaf",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 277.209,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48079,
    "c": 0.19632,
    "h": 309.1
  },
  "luminance": 0.09485
}

Semantic roles & 50–950 ramp

primary
#7E2EAF
secondary
#93C574
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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