#7E30AD#7E30AD

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

Color values

HEX#7E30AD
RGBrgb(126, 48, 173)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 72%, 68%)
CMYKcmyk(27.2%, 72.3%, 0%, 32.2%)
CIE-LABlab(37.05, 54.15, -52.32)
CIE-LCHlch(37.05, 75.30, 315.98°)
OKLaboklab(48.14% 0.1221 -0.1482)
OKLCHoklch(48.14% 0.192 309.5)
XYZxyz(17.2025, 9.5670, 40.4675)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30AD #5FAD30
analogous
#3F30AD #7E30AD #AD309D
triadic
#7E30AD #AD7E30 #30AD7E
tetradic
#7E30AD #AD3F30 #5FAD30 #309DAD
square
#7E30AD #AD3F30 #5FAD30 #309DAD
split-complementary
#7E30AD #9DAD30 #30AD3F
monochromatic
#38154D #5B237D #7E30AD #9D4DCE #B77DDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E30AD#FFFFFF#000000##FFFFFF
##7E30AD1.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)
#0054B1
Deuteranopia (green-blind)
#1458AA
Tritanopia (blue-blind)
#774C6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e30ad;
/* rgb */ color: rgb(126, 48, 173);
/* oklch */ color: oklch(48.1% 0.192 309.5);
Tailwind
colors: {
  custom: {
    50: '#a86fc6',
    500: '#7e30ad',
    950: '#000000',
  },
}
SCSS
$custom: #7e30ad;
$custom-light: #a86fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30ad",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 173
  },
  "hsl": {
    "h": 277.44,
    "s": 56.561,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.192,
    "h": 309.5
  },
  "luminance": 0.09567
}

Semantic roles & 50–950 ramp

primary
#7E30AD
secondary
#93C375
accent
#E04881
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30AD

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

Preview Lab → · Contrast checker → · Palette generator →

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