#7E30B6#7E30B6

#7E30B6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.201 H 306.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7E30B6
RGBrgb(126, 48, 182)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 74%, 71%)
CMYKcmyk(30.8%, 73.6%, 0%, 28.6%)
CIE-LABlab(37.71, 56.16, -56.60)
CIE-LCHlch(37.71, 79.74, 314.78°)
OKLaboklab(48.81% 0.1206 -0.1608)
OKLCHoklch(48.81% 0.201 306.9)
XYZxyz(18.1028, 9.9271, 45.2094)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B6 #68B630
analogous
#3B30B6 #7E30B6 #B630AB
triadic
#7E30B6 #B67E30 #30B67E
tetradic
#7E30B6 #B63B30 #68B630 #30ABB6
square
#7E30B6 #B63B30 #68B630 #30ABB6
split-complementary
#7E30B6 #ABB630 #30B63B
monochromatic
#3B1655 #5C2386 #7E30B6 #9C52D1 #B882DE

Accessibility & contrast

On white

7.03
#7E30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7E30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30B6
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B6#FFFFFF#000000##FFFFFF
##7E30B61.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#745071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e30b6;
/* rgb */ color: rgb(126, 48, 182);
/* oklch */ color: oklch(48.8% 0.201 306.9);
Tailwind
colors: {
  custom: {
    50: '#a870cd',
    500: '#7e30b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b6;
$custom-light: #a870cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b6",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 274.925,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48814,
    "c": 0.20097,
    "h": 306.9
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#7E30B6
secondary
#9BC77B
accent
#E14687
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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