#6D30AB#6D30AB

#6D30AB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.186 H 302.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6D30AB
RGBrgb(109, 48, 171)
HSLhsl(270, 56%, 43%)
HSVhsv(270, 72%, 67%)
CMYKcmyk(36.3%, 71.9%, 0%, 32.9%)
CIE-LABlab(34.61, 50.31, -55.20)
CIE-LCHlch(34.61, 74.69, 312.35°)
OKLaboklab(45.87% 0.0988 -0.1573)
OKLCHoklch(45.87% 0.186 302.1)
XYZxyz(14.7126, 8.3053, 39.3482)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D30AB #6EAB30
analogous
#3031AB #6D30AB #AA30AB
triadic
#6D30AB #AB6D30 #30AB6D
tetradic
#6D30AB #AB3031 #6EAB30 #30ABAA
square
#6D30AB #AB3031 #6EAB30 #30ABAA
split-complementary
#6D30AB #ABAA30 #31AB30
monochromatic
#30154B #4F237B #6D30AB #8C4CCD #AA7BDA

Accessibility & contrast

On white

7.89
#6D30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6D30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D30AB
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D30AB#FFFFFF#000000##FFFFFF
##6D30AB1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#604E6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6d30ab;
/* rgb */ color: rgb(109, 48, 171);
/* oklch */ color: oklch(45.9% 0.186 302.1);
Tailwind
colors: {
  custom: {
    50: '#9c6ec5',
    500: '#6d30ab',
    950: '#000000',
  },
}
SCSS
$custom: #6d30ab;
$custom-light: #9c6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d30ab",
  "rgb": {
    "r": 109,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 269.756,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45869,
    "c": 0.18573,
    "h": 302.1
  },
  "luminance": 0.08305
}

Semantic roles & 50–950 ramp

primary
#6D30AB
secondary
#9CC374
accent
#DF4895
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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