#7E2FAF#7E2FAF

#7E2FAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 309.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2FAF
RGBrgb(126, 47, 175)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 73%, 69%)
CMYKcmyk(28%, 73.1%, 0%, 31.4%)
CIE-LABlab(37.05, 55.01, -53.52)
CIE-LCHlch(37.05, 76.75, 315.79°)
OKLaboklab(48.18% 0.1227 -0.1517)
OKLCHoklch(48.18% 0.195 309)
XYZxyz(17.3570, 9.5641, 41.4808)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FAF #60AF2F
analogous
#3E2FAF #7E2FAF #AF2FA0
triadic
#7E2FAF #AF7E2F #2FAF7E
tetradic
#7E2FAF #AF3E2F #60AF2F #2FA0AF
square
#7E2FAF #AF3E2F #60AF2F #2FA0AF
split-complementary
#7E2FAF #A0AF2F #2FAF3E
monochromatic
#39154F #5B227F #7E2FAF #9D4CCF #B77CDC

Accessibility & contrast

On white

7.21
#7E2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FAF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FAF#FFFFFF#000000##FFFFFF
##7E2FAF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0B58AC
Tritanopia (blue-blind)
#774D6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2faf;
/* rgb */ color: rgb(126, 47, 175);
/* oklch */ color: oklch(48.2% 0.195 309.0);
Tailwind
colors: {
  custom: {
    50: '#a86fc8',
    500: '#7e2faf',
    950: '#000000',
  },
}
SCSS
$custom: #7e2faf;
$custom-light: #a86fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2faf",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 277.031,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48183,
    "c": 0.19517,
    "h": 309
  },
  "luminance": 0.09564
}

Semantic roles & 50–950 ramp

primary
#7E2FAF
secondary
#94C475
accent
#E14782
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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