#7E2AC0#7E2AC0

#7E2AC0 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.217 H 304.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7E2AC0
RGBrgb(126, 42, 192)
HSLhsl(274, 64%, 46%)
HSVhsv(274, 78%, 75%)
CMYKcmyk(34.4%, 78.1%, 0%, 24.7%)
CIE-LABlab(37.66, 60.79, -62.58)
CIE-LCHlch(37.66, 87.24, 314.17°)
OKLaboklab(49.02% 0.1237 -0.1783)
OKLCHoklch(49.02% 0.217 304.7)
XYZxyz(18.9444, 9.8974, 50.7713)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AC0 #6CC02A
analogous
#332AC0 #7E2AC0 #C02AB7
triadic
#7E2AC0 #C07E2A #2AC07E
tetradic
#7E2AC0 #C0332A #6CC02A #2AB7C0
square
#7E2AC0 #C0332A #6CC02A #2AB7C0
split-complementary
#7E2AC0 #B7C02A #2AC033
monochromatic
#3C145C #5D1F8E #7E2AC0 #9C4FD8 #B881E3

Accessibility & contrast

On white

7.05
#7E2AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7E2AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AC0
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AC0#FFFFFF#000000##FFFFFF
##7E2AC01.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#715175
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2ac0;
/* rgb */ color: rgb(126, 42, 192);
/* oklch */ color: oklch(49.0% 0.217 304.7);
Tailwind
colors: {
  custom: {
    50: '#a96dd4',
    500: '#7e2ac0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ac0;
$custom-light: #a96dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ac0",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 273.6,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49018,
    "c": 0.21701,
    "h": 304.7
  },
  "luminance": 0.09897
}

Semantic roles & 50–950 ramp

primary
#7E2AC0
secondary
#9ECC7A
accent
#E7418A
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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