#7E30B9#7E30B9

#7E30B9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.204 H 306.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7E30B9
RGBrgb(126, 48, 185)
HSLhsl(274, 59%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(31.9%, 74.1%, 0%, 27.5%)
CIE-LABlab(37.94, 56.84, -58.01)
CIE-LCHlch(37.94, 81.21, 314.42°)
OKLaboklab(49.04% 0.12 -0.1649)
OKLCHoklch(49.04% 0.204 306)
XYZxyz(18.4162, 10.0525, 46.8597)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B9 #6BB930
analogous
#3A30B9 #7E30B9 #B930AF
triadic
#7E30B9 #B97E30 #30B97E
tetradic
#7E30B9 #B93A30 #6BB930 #30AFB9
square
#7E30B9 #B93A30 #6BB930 #30AFB9
split-complementary
#7E30B9 #AFB930 #30B93A
monochromatic
#3C1758 #5D2388 #7E30B9 #9C54D3 #B884DF

Accessibility & contrast

On white

6.98
#7E30B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7E30B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30B9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B9#FFFFFF#000000##FFFFFF
##7E30B91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#735172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e30b9;
/* rgb */ color: rgb(126, 48, 185);
/* oklch */ color: oklch(49.0% 0.204 306.0);
Tailwind
colors: {
  custom: {
    50: '#a970cf',
    500: '#7e30b9',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b9;
$custom-light: #a970cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b9",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 185
  },
  "hsl": {
    "h": 274.161,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49044,
    "c": 0.20395,
    "h": 306
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#7E30B9
secondary
#9DC97C
accent
#E24689
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E30B9

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

Preview Lab → · Contrast checker → · Palette generator →

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