#7E2AAF#7E2AAF

#7E2AAF is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.201 H 309.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7E2AAF
RGBrgb(126, 42, 175)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(28%, 76%, 0%, 31.4%)
CIE-LABlab(36.34, 57.03, -54.67)
CIE-LCHlch(36.34, 79.00, 316.21°)
OKLaboklab(47.68% 0.1275 -0.1551)
OKLCHoklch(47.68% 0.201 309.4)
XYZxyz(17.1685, 9.1870, 41.4180)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AAF #5BAF2A
analogous
#3C2AAF #7E2AAF #AF2A9D
triadic
#7E2AAF #AF7E2A #2AAF7E
tetradic
#7E2AAF #AF3C2A #5BAF2A #2A9DAF
square
#7E2AAF #AF3C2A #5BAF2A #2A9DAF
split-complementary
#7E2AAF #9DAF2A #2AAF3C
monochromatic
#37124C #5A1E7E #7E2AAF #9E44D2 #B775DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2AAF#FFFFFF#000000##FFFFFF
##7E2AAF1.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)
#0052B3
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#774A6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2aaf;
/* rgb */ color: rgb(126, 42, 175);
/* oklch */ color: oklch(47.7% 0.201 309.4);
Tailwind
colors: {
  custom: {
    50: '#a86dc8',
    500: '#7e2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aaf;
$custom-light: #a86dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aaf",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 277.895,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47683,
    "c": 0.20074,
    "h": 309.4
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#7E2AAF
secondary
#8FC66F
accent
#E4437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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