#7E30B5#7E30B5

#7E30B5 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.7% C 0.200 H 307.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7E30B5
RGBrgb(126, 48, 181)
HSLhsl(275, 58%, 45%)
HSVhsv(275, 73%, 71%)
CMYKcmyk(30.4%, 73.5%, 0%, 29%)
CIE-LABlab(37.64, 55.94, -56.13)
CIE-LCHlch(37.64, 79.24, 314.90°)
OKLaboklab(48.74% 0.1207 -0.1594)
OKLCHoklch(48.74% 0.2 307.1)
XYZxyz(17.9998, 9.8859, 44.6670)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B5 #67B530
analogous
#3B30B5 #7E30B5 #B530AA
triadic
#7E30B5 #B57E30 #30B57E
tetradic
#7E30B5 #B53B30 #67B530 #30AAB5
square
#7E30B5 #B53B30 #67B530 #30AAB5
split-complementary
#7E30B5 #AAB530 #30B53B
monochromatic
#3B1654 #5C2385 #7E30B5 #9C51D1 #B882DE

Accessibility & contrast

On white

7.05
#7E30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7E30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30B5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B5#FFFFFF#000000##FFFFFF
##7E30B51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#755070
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e30b5;
/* rgb */ color: rgb(126, 48, 181);
/* oklch */ color: oklch(48.7% 0.200 307.1);
Tailwind
colors: {
  custom: {
    50: '#a870cc',
    500: '#7e30b5',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b5;
$custom-light: #a870cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b5",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 275.188,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.19997,
    "h": 307.1
  },
  "luminance": 0.09886
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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