#6A30A4#6A30A4

#6A30A4 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.178 H 302.6°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#6A30A4
RGBrgb(106, 48, 164)
HSLhsl(270, 55%, 42%)
HSVhsv(270, 71%, 64%)
CMYKcmyk(35.4%, 70.7%, 0%, 35.7%)
CIE-LABlab(33.69, 47.99, -52.51)
CIE-LCHlch(33.69, 71.14, 312.42°)
OKLaboklab(44.96% 0.0958 -0.1495)
OKLCHoklch(44.96% 0.178 302.6)
XYZxyz(13.7001, 7.8584, 35.9098)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30A4 #6AA430
analogous
#3030A4 #6A30A4 #A430A4
triadic
#6A30A4 #A46A30 #30A46A
tetradic
#6A30A4 #A43030 #6AA430 #30A4A4
square
#6A30A4 #A43030 #6AA430 #30A4A4
split-complementary
#6A30A4 #A4A430 #30A430
monochromatic
#2D1445 #4B2275 #6A30A4 #8948C9 #A777D7

Accessibility & contrast

On white

8.17
#6A30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6A30A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30A4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30A4#FFFFFF#000000##FFFFFF
##6A30A41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#5E4B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a30a4;
/* rgb */ color: rgb(106, 48, 164);
/* oklch */ color: oklch(45.0% 0.178 302.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dc0',
    500: '#6a30a4',
    950: '#000000',
  },
}
SCSS
$custom: #6a30a4;
$custom-light: #9a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30a4",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 270,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.17752,
    "h": 302.6
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#6A30A4
secondary
#98BF70
accent
#DE4A94
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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