#7E30AA#7E30AA

#7E30AA is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.189 H 310.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7E30AA
RGBrgb(126, 48, 170)
HSLhsl(278, 56%, 43%)
HSVhsv(278, 72%, 67%)
CMYKcmyk(25.9%, 71.8%, 0%, 33.3%)
CIE-LABlab(36.84, 53.48, -50.88)
CIE-LCHlch(36.84, 73.82, 316.43°)
OKLaboklab(47.92% 0.1225 -0.144)
OKLCHoklch(47.92% 0.189 310.4)
XYZxyz(16.9154, 9.4522, 38.9558)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30AA #5CAA30
analogous
#4130AA #7E30AA #AA3099
triadic
#7E30AA #AA7E30 #30AA7E
tetradic
#7E30AA #AA4130 #5CAA30 #3099AA
square
#7E30AA #AA4130 #5CAA30 #3099AA
split-complementary
#7E30AA #99AA30 #30AA41
monochromatic
#37154B #5B237A #7E30AA #9E4BCC #B77BDA

Accessibility & contrast

On white

7.27
#7E30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30AA
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30AA#FFFFFF#000000##FFFFFF
##7E30AA1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1A58A7
Tritanopia (blue-blind)
#784B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e30aa;
/* rgb */ color: rgb(126, 48, 170);
/* oklch */ color: oklch(47.9% 0.189 310.4);
Tailwind
colors: {
  custom: {
    50: '#a86fc4',
    500: '#7e30aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e30aa;
$custom-light: #a86fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30aa",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 278.361,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47922,
    "c": 0.18902,
    "h": 310.4
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#7E30AA
secondary
#90C274
accent
#DF497F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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