#7E30B8#7E30B8

#7E30B8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.203 H 306.3°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#7E30B8
RGBrgb(126, 48, 184)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 72%)
CMYKcmyk(31.5%, 73.9%, 0%, 27.8%)
CIE-LABlab(37.86, 56.62, -57.54)
CIE-LCHlch(37.86, 80.72, 314.54°)
OKLaboklab(48.97% 0.1202 -0.1635)
OKLCHoklch(48.97% 0.203 306.3)
XYZxyz(18.3110, 10.0104, 46.3057)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B8 #6AB830
analogous
#3A30B8 #7E30B8 #B830AE
triadic
#7E30B8 #B87E30 #30B87E
tetradic
#7E30B8 #B83A30 #6AB830 #30AEB8
square
#7E30B8 #B83A30 #6AB830 #30AEB8
split-complementary
#7E30B8 #AEB830 #30B83A
monochromatic
#3C1757 #5D2387 #7E30B8 #9C53D2 #B884DF

Accessibility & contrast

On white

7.00
#7E30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7E30B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30B8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B8#FFFFFF#000000##FFFFFF
##7E30B81.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#745172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e30b8;
/* rgb */ color: rgb(126, 48, 184);
/* oklch */ color: oklch(49.0% 0.203 306.3);
Tailwind
colors: {
  custom: {
    50: '#a970ce',
    500: '#7e30b8',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b8;
$custom-light: #a970ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b8",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 274.412,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48967,
    "c": 0.20296,
    "h": 306.3
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#7E30B8
secondary
#9CC87C
accent
#E24688
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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