#7E30B3#7E30B3

#7E30B3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.198 H 307.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7E30B3
RGBrgb(126, 48, 179)
HSLhsl(276, 58%, 45%)
HSVhsv(276, 73%, 70%)
CMYKcmyk(29.6%, 73.2%, 0%, 29.8%)
CIE-LABlab(37.49, 55.49, -55.18)
CIE-LCHlch(37.49, 78.26, 315.16°)
OKLaboklab(48.59% 0.1211 -0.1566)
OKLCHoklch(48.59% 0.198 307.7)
XYZxyz(17.7961, 9.8045, 43.5940)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E30B3 #65B330
analogous
#3D30B3 #7E30B3 #B330A7
triadic
#7E30B3 #B37E30 #30B37E
tetradic
#7E30B3 #B33D30 #65B330 #30A7B3
square
#7E30B3 #B33D30 #65B330 #30A7B3
split-complementary
#7E30B3 #A7B330 #30B33D
monochromatic
#3A1652 #5C2383 #7E30B3 #9C50D0 #B880DD

Accessibility & contrast

On white

7.09
#7E30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7E30B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E30B3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E30B3#FFFFFF#000000##FFFFFF
##7E30B31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#754F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e30b3;
/* rgb */ color: rgb(126, 48, 179);
/* oklch */ color: oklch(48.6% 0.198 307.7);
Tailwind
colors: {
  custom: {
    50: '#a870cb',
    500: '#7e30b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e30b3;
$custom-light: #a870cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e30b3",
  "rgb": {
    "r": 126,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 275.725,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48587,
    "c": 0.19798,
    "h": 307.7
  },
  "luminance": 0.09804
}

Semantic roles & 50–950 ramp

primary
#7E30B3
secondary
#98C679
accent
#E14785
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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