#7E30BB#7E30BB

#7E30BB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.206 H 305.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7E30BB
RGBrgb(126, 48, 187)
HSLhsl(274, 59%, 46%)
HSVhsv(274, 74%, 73%)
CMYKcmyk(32.6%, 74.3%, 0%, 26.7%)
CIE-LABlab(38.09, 57.30, -58.94)
CIE-LCHlch(38.09, 82.20, 314.19°)
OKLaboklab(49.2% 0.1196 -0.1677)
OKLCHoklch(49.2% 0.206 305.5)
XYZxyz(18.6288, 10.1375, 47.9794)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30BB #6DBB30
analogous
#3830BB #7E30BB #BB30B2
triadic
#7E30BB #BB7E30 #30BB7E
tetradic
#7E30BB #BB3830 #6DBB30 #30B2BB
square
#7E30BB #BB3830 #6DBB30 #30B2BB
split-complementary
#7E30BB #B2BB30 #30BB38
monochromatic
#3C175A #5D238A #7E30BB #9C55D3 #B886E0

Accessibility & contrast

On white

6.94
#7E30BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E30BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E30BB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30BB#FFFFFF#000000##FFFFFF
##7E30BB1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#735273
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e30bb;
/* rgb */ color: rgb(126, 48, 187);
/* oklch */ color: oklch(49.2% 0.206 305.5);
Tailwind
colors: {
  custom: {
    50: '#a970d0',
    500: '#7e30bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e30bb;
$custom-light: #a970d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30bb",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 273.669,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49199,
    "c": 0.20595,
    "h": 305.5
  },
  "luminance": 0.10137
}

Semantic roles & 50–950 ramp

primary
#7E30BB
secondary
#9FC97D
accent
#E2458A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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