#6C30B8#6C30B8

#6C30B8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.200 H 298.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#6C30B8
RGBrgb(108, 48, 184)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 72%)
CMYKcmyk(41.3%, 73.9%, 0%, 27.8%)
CIE-LABlab(35.52, 53.37, -61.45)
CIE-LCHlch(35.52, 81.39, 310.97°)
OKLaboklab(46.81% 0.0947 -0.1757)
OKLCHoklch(46.81% 0.2 298.3)
XYZxyz(15.8908, 8.7625, 46.1922)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C30B8 #7CB830
analogous
#3038B8 #6C30B8 #B030B8
triadic
#6C30B8 #B86C30 #30B86C
tetradic
#6C30B8 #B83038 #7CB830 #30B8B0
square
#6C30B8 #B83038 #7CB830 #30B8B0
split-complementary
#6C30B8 #B8B030 #38B830
monochromatic
#331757 #502387 #6C30B8 #8B53D2 #AC84DF

Accessibility & contrast

On white

7.63
#6C30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6C30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C30B8
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C30B8#FFFFFF#000000##FFFFFF
##6C30B81.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#595372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6c30b8;
/* rgb */ color: rgb(108, 48, 184);
/* oklch */ color: oklch(46.8% 0.200 298.3);
Tailwind
colors: {
  custom: {
    50: '#9d6ece',
    500: '#6c30b8',
    950: '#000000',
  },
}
SCSS
$custom: #6c30b8;
$custom-light: #9d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6c30b8",
  "rgb": {
    "r": 108,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 266.471,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.19958,
    "h": 298.3
  },
  "luminance": 0.08763
}

Semantic roles & 50–950 ramp

primary
#6C30B8
secondary
#A6C87C
accent
#E2469D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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