#6C30B6#6C30B6

#6C30B6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.197 H 298.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#6C30B6
RGBrgb(108, 48, 182)
HSLhsl(267, 58%, 45%)
HSVhsv(267, 74%, 71%)
CMYKcmyk(40.7%, 73.6%, 0%, 28.6%)
CIE-LABlab(35.36, 52.86, -60.53)
CIE-LCHlch(35.36, 80.36, 311.13°)
OKLaboklab(46.64% 0.0952 -0.173)
OKLCHoklch(46.64% 0.197 298.8)
XYZxyz(15.6826, 8.6792, 45.0959)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C30B6 #7AB630
analogous
#3037B6 #6C30B6 #AF30B6
triadic
#6C30B6 #B66C30 #30B66C
tetradic
#6C30B6 #B63037 #7AB630 #30B6AF
square
#6C30B6 #B63037 #7AB630 #30B6AF
split-complementary
#6C30B6 #B6AF30 #37B630
monochromatic
#331655 #4F2386 #6C30B6 #8B52D1 #AB82DE

Accessibility & contrast

On white

7.68
#6C30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6C30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C30B6
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C30B6#FFFFFF#000000##FFFFFF
##6C30B61.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#5A5270
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6c30b6;
/* rgb */ color: rgb(108, 48, 182);
/* oklch */ color: oklch(46.6% 0.197 298.8);
Tailwind
colors: {
  custom: {
    50: '#9d6ecd',
    500: '#6c30b6',
    950: '#000000',
  },
}
SCSS
$custom: #6c30b6;
$custom-light: #9d6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c30b6",
  "rgb": {
    "r": 108,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 266.866,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.19742,
    "h": 298.8
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#6C30B6
secondary
#A5C77B
accent
#E1469C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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