#6A30B7#6A30B7

#6A30B7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.198 H 297.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#6A30B7
RGBrgb(106, 48, 183)
HSLhsl(266, 58%, 45%)
HSVhsv(266, 74%, 72%)
CMYKcmyk(42.1%, 73.8%, 0%, 28.2%)
CIE-LABlab(35.20, 52.77, -61.40)
CIE-LCHlch(35.20, 80.96, 310.68°)
OKLaboklab(46.5% 0.092 -0.1756)
OKLCHoklch(46.5% 0.198 297.7)
XYZxyz(15.5458, 8.5967, 45.6308)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30B7 #7DB730
analogous
#3039B7 #6A30B7 #AE30B7
triadic
#6A30B7 #B76A30 #30B76A
tetradic
#6A30B7 #B73039 #7DB730 #30B7AE
square
#6A30B7 #B73039 #7DB730 #30B7AE
split-complementary
#6A30B7 #B7AE30 #39B730
monochromatic
#321756 #4E2387 #6A30B7 #8952D2 #AA83DE

Accessibility & contrast

On white

7.72
#6A30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6A30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30B7
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30B7#FFFFFF#000000##FFFFFF
##6A30B71.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#565371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a30b7;
/* rgb */ color: rgb(106, 48, 183);
/* oklch */ color: oklch(46.5% 0.198 297.7);
Tailwind
colors: {
  custom: {
    50: '#9b6ece',
    500: '#6a30b7',
    950: '#000000',
  },
}
SCSS
$custom: #6a30b7;
$custom-light: #9b6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30b7",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 265.778,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.465,
    "c": 0.19826,
    "h": 297.7
  },
  "luminance": 0.08597
}

Semantic roles & 50–950 ramp

primary
#6A30B7
secondary
#A7C87B
accent
#E2469F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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