#7E30B2#7E30B2

#7E30B2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.197 H 308.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7E30B2
RGBrgb(126, 48, 178)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 70%)
CMYKcmyk(29.2%, 73%, 0%, 30.2%)
CIE-LABlab(37.42, 55.26, -54.71)
CIE-LCHlch(37.42, 77.76, 315.29°)
OKLaboklab(48.51% 0.1213 -0.1552)
OKLCHoklch(48.51% 0.197 308)
XYZxyz(17.6953, 9.7641, 43.0633)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B2 #64B230
analogous
#3D30B2 #7E30B2 #B230A5
triadic
#7E30B2 #B27E30 #30B27E
tetradic
#7E30B2 #B23D30 #64B230 #30A5B2
square
#7E30B2 #B23D30 #64B230 #30A5B2
split-complementary
#7E30B2 #A5B230 #30B23D
monochromatic
#3A1652 #5C2382 #7E30B2 #9C50D0 #B780DD

Accessibility & contrast

On white

7.11
#7E30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30B2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B2#FFFFFF#000000##FFFFFF
##7E30B21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0259AF
Tritanopia (blue-blind)
#764E6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e30b2;
/* rgb */ color: rgb(126, 48, 178);
/* oklch */ color: oklch(48.5% 0.197 308.0);
Tailwind
colors: {
  custom: {
    50: '#a870ca',
    500: '#7e30b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b2;
$custom-light: #a870ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b2",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 276,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48512,
    "c": 0.19699,
    "h": 308
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#7E30B2
secondary
#97C678
accent
#E14785
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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