#6A30B2#6A30B2

#6A30B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.193 H 298.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6A30B2
RGBrgb(106, 48, 178)
HSLhsl(267, 58%, 44%)
HSVhsv(267, 73%, 70%)
CMYKcmyk(40.4%, 73%, 0%, 30.2%)
CIE-LABlab(34.79, 51.50, -59.10)
CIE-LCHlch(34.79, 78.39, 311.07°)
OKLaboklab(46.08% 0.0931 -0.1688)
OKLCHoklch(46.08% 0.193 298.9)
XYZxyz(15.0347, 8.3922, 42.9386)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A30B2 #78B230
analogous
#3037B2 #6A30B2 #AB30B2
triadic
#6A30B2 #B26A30 #30B26A
tetradic
#6A30B2 #B23037 #78B230 #30B2AB
square
#6A30B2 #B23037 #78B230 #30B2AB
split-complementary
#6A30B2 #B2AB30 #37B230
monochromatic
#311652 #4D2382 #6A30B2 #8950D0 #A980DD

Accessibility & contrast

On white

7.84
#6A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A30B2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A30B2#FFFFFF#000000##FFFFFF
##6A30B21.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#59516E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a30b2;
/* rgb */ color: rgb(106, 48, 178);
/* oklch */ color: oklch(46.1% 0.193 298.9);
Tailwind
colors: {
  custom: {
    50: '#9b6eca',
    500: '#6a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a30b2;
$custom-light: #9b6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a30b2",
  "rgb": {
    "r": 106,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 266.769,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46084,
    "c": 0.19283,
    "h": 298.9
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#6A30B2
secondary
#A3C678
accent
#E1479C
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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