#6D30A6#6D30A6

#6D30A6 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.180 H 303.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6D30A6
RGBrgb(109, 48, 166)
HSLhsl(271, 55%, 42%)
HSVhsv(271, 71%, 65%)
CMYKcmyk(34.3%, 71.1%, 0%, 34.9%)
CIE-LABlab(34.23, 49.09, -52.82)
CIE-LCHlch(34.23, 72.11, 312.90°)
OKLaboklab(45.48% 0.0997 -0.1503)
OKLCHoklch(45.48% 0.18 303.6)
XYZxyz(14.2450, 8.1183, 36.8855)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D30A6 #69A630
analogous
#3230A6 #6D30A6 #A630A4
triadic
#6D30A6 #A66D30 #30A66D
tetradic
#6D30A6 #A63230 #69A630 #30A4A6
square
#6D30A6 #A63230 #69A630 #30A4A6
split-complementary
#6D30A6 #A4A630 #30A632
monochromatic
#2F1547 #4E2277 #6D30A6 #8C49CA #AA78D8

Accessibility & contrast

On white

8.00
#6D30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6D30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D30A6
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D30A6#FFFFFF#000000##FFFFFF
##6D30A61.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#624C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6d30a6;
/* rgb */ color: rgb(109, 48, 166);
/* oklch */ color: oklch(45.5% 0.180 303.6);
Tailwind
colors: {
  custom: {
    50: '#9c6dc1',
    500: '#6d30a6',
    950: '#000000',
  },
}
SCSS
$custom: #6d30a6;
$custom-light: #9c6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6d30a6",
  "rgb": {
    "r": 109,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 271.017,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45477,
    "c": 0.18033,
    "h": 303.6
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#6D30A6
secondary
#98C071
accent
#DE4991
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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