#7E30A2#7E30A2

#7E30A2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.181 H 313.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7E30A2
RGBrgb(126, 48, 162)
HSLhsl(281, 54%, 41%)
HSVhsv(281, 70%, 64%)
CMYKcmyk(22.2%, 70.4%, 0%, 36.5%)
CIE-LABlab(36.29, 51.74, -46.97)
CIE-LCHlch(36.29, 69.88, 317.77°)
OKLaboklab(47.35% 0.1234 -0.1325)
OKLCHoklch(47.35% 0.181 313)
XYZxyz(16.1816, 9.1586, 35.0908)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30A2 #54A230
analogous
#4530A2 #7E30A2 #A2308D
triadic
#7E30A2 #A27E30 #30A27E
tetradic
#7E30A2 #A24530 #54A230 #308DA2
square
#7E30A2 #A24530 #54A230 #308DA2
split-complementary
#7E30A2 #8DA230 #30A245
monochromatic
#351444 #592273 #7E30A2 #9F47C8 #B876D6

Accessibility & contrast

On white

7.42
#7E30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30A2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30A2#FFFFFF#000000##FFFFFF
##7E30A21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#26579F
Tritanopia (blue-blind)
#7A4865
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e30a2;
/* rgb */ color: rgb(126, 48, 162);
/* oklch */ color: oklch(47.4% 0.181 313.0);
Tailwind
colors: {
  custom: {
    50: '#a76fbe',
    500: '#7e30a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e30a2;
$custom-light: #a76fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30a2",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 281.053,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47353,
    "c": 0.18108,
    "h": 313
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#7E30A2
secondary
#88BE6F
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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