#6A30B4#6A30B4

#6A30B4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.195 H 298.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6A30B4
RGBrgb(106, 48, 180)
HSLhsl(266, 58%, 45%)
HSVhsv(266, 73%, 71%)
CMYKcmyk(41.1%, 73.3%, 0%, 29.4%)
CIE-LABlab(34.95, 52.01, -60.02)
CIE-LCHlch(34.95, 79.42, 310.91°)
OKLaboklab(46.25% 0.0927 -0.1716)
OKLCHoklch(46.25% 0.195 298.4)
XYZxyz(15.2369, 8.4731, 44.0039)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30B4 #7AB430
analogous
#3038B4 #6A30B4 #AC30B4
triadic
#6A30B4 #B46A30 #30B46A
tetradic
#6A30B4 #B43038 #7AB430 #30B4AC
square
#6A30B4 #B43038 #7AB430 #30B4AC
split-complementary
#6A30B4 #B4AC30 #38B430
monochromatic
#311653 #4E2384 #6A30B4 #8951D1 #AA81DD

Accessibility & contrast

On white

7.79
#6A30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6A30B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30B4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30B4#FFFFFF#000000##FFFFFF
##6A30B41.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#58526F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a30b4;
/* rgb */ color: rgb(106, 48, 180);
/* oklch */ color: oklch(46.2% 0.195 298.4);
Tailwind
colors: {
  custom: {
    50: '#9b6ecb',
    500: '#6a30b4',
    950: '#000000',
  },
}
SCSS
$custom: #6a30b4;
$custom-light: #9b6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30b4",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 266.364,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46249,
    "c": 0.195,
    "h": 298.4
  },
  "luminance": 0.08473
}

Semantic roles & 50–950 ramp

primary
#6A30B4
secondary
#A5C679
accent
#E1479D
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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