#6E30AB#6E30AB

#6E30AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.186 H 302.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#6E30AB
RGBrgb(110, 48, 171)
HSLhsl(270, 56%, 43%)
HSVhsv(270, 72%, 67%)
CMYKcmyk(35.7%, 71.9%, 0%, 32.9%)
CIE-LABlab(34.74, 50.51, -54.98)
CIE-LCHlch(34.74, 74.66, 312.57°)
OKLaboklab(45.99% 0.1002 -0.1566)
OKLCHoklch(45.99% 0.186 302.6)
XYZxyz(14.8363, 8.3692, 39.3540)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E30AB #6DAB30
analogous
#3130AB #6E30AB #AB30AA
triadic
#6E30AB #AB6E30 #30AB6E
tetradic
#6E30AB #AB3130 #6DAB30 #30AAAB
square
#6E30AB #AB3130 #6DAB30 #30AAAB
split-complementary
#6E30AB #AAAB30 #30AB31
monochromatic
#31154B #4F237B #6E30AB #8D4CCD #AB7BDA

Accessibility & contrast

On white

7.85
#6E30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6E30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E30AB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E30AB#FFFFFF#000000##FFFFFF
##6E30AB1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#614E6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6e30ab;
/* rgb */ color: rgb(110, 48, 171);
/* oklch */ color: oklch(46.0% 0.186 302.6);
Tailwind
colors: {
  custom: {
    50: '#9d6ec5',
    500: '#6e30ab',
    950: '#000000',
  },
}
SCSS
$custom: #6e30ab;
$custom-light: #9d6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#6e30ab",
  "rgb": {
    "r": 110,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 270.244,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45989,
    "c": 0.18593,
    "h": 302.6
  },
  "luminance": 0.08369
}

Semantic roles & 50–950 ramp

primary
#6E30AB
secondary
#9BC374
accent
#DF4893
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E30AB

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

Preview Lab → · Contrast checker → · Palette generator →

#6E30AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva