#7E2EA7#7E2EA7

#7E2EA7 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.188 H 311.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA7
RGBrgb(126, 46, 167)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.6%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.33, 53.68, -49.91)
CIE-LCHlch(36.33, 73.30, 317.08°)
OKLaboklab(47.49% 0.1249 -0.1411)
OKLCHoklch(47.49% 0.188 311.5)
XYZxyz(16.5549, 9.1801, 37.4516)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA7 #57A72E
analogous
#412EA7 #7E2EA7 #A72E94
triadic
#7E2EA7 #A77E2E #2EA77E
tetradic
#7E2EA7 #A7412E #57A72E #2E94A7
square
#7E2EA7 #A7412E #57A72E #2E94A7
split-complementary
#7E2EA7 #94A72E #2EA741
monochromatic
#361447 #5A2177 #7E2EA7 #9F46CC #B876D9

Accessibility & contrast

On white

7.40
#7E2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2EA7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA7#FFFFFF#000000##FFFFFF
##7E2EA71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#794968
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ea7;
/* rgb */ color: rgb(126, 46, 167);
/* oklch */ color: oklch(47.5% 0.188 311.5);
Tailwind
colors: {
  custom: {
    50: '#a76ec2',
    500: '#7e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea7;
$custom-light: #a76ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea7",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 279.669,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47491,
    "c": 0.18848,
    "h": 311.5
  },
  "luminance": 0.0918
}

Semantic roles & 50–950 ramp

primary
#7E2EA7
secondary
#8BC170
accent
#E0487B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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