#7E2AB9#7E2AB9

#7E2AB9 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.210 H 306.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB9
RGBrgb(126, 42, 185)
HSLhsl(275, 63%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(31.9%, 77.3%, 0%, 27.5%)
CIE-LABlab(37.10, 59.22, -59.36)
CIE-LCHlch(37.10, 83.85, 314.94°)
OKLaboklab(48.46% 0.1254 -0.1689)
OKLCHoklch(48.46% 0.21 306.6)
XYZxyz(18.1872, 9.5945, 46.7833)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB9 #65B92A
analogous
#372AB9 #7E2AB9 #B92AAD
triadic
#7E2AB9 #B97E2A #2AB97E
tetradic
#7E2AB9 #B9372A #65B92A #2AADB9
square
#7E2AB9 #B9372A #65B92A #2AADB9
split-complementary
#7E2AB9 #ADB92A #2AB937
monochromatic
#3A1355 #5C1F87 #7E2AB9 #9C4AD6 #B87CE1

Accessibility & contrast

On white

7.19
#7E2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7E2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB9
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB9#FFFFFF#000000##FFFFFF
##7E2AB91.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#744E71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2ab9;
/* rgb */ color: rgb(126, 42, 185);
/* oklch */ color: oklch(48.5% 0.210 306.6);
Tailwind
colors: {
  custom: {
    50: '#a96dcf',
    500: '#7e2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab9;
$custom-light: #a96dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab9",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 275.245,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48459,
    "c": 0.21031,
    "h": 306.6
  },
  "luminance": 0.09594
}

Semantic roles & 50–950 ramp

primary
#7E2AB9
secondary
#98CA75
accent
#E64286
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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