#6B30B8#6B30B8

#6B30B8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.199 H 297.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6B30B8
RGBrgb(107, 48, 184)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 72%)
CMYKcmyk(41.8%, 73.9%, 0%, 27.8%)
CIE-LABlab(35.40, 53.19, -61.65)
CIE-LCHlch(35.40, 81.43, 310.79°)
OKLaboklab(46.7% 0.0933 -0.1763)
OKLCHoklch(46.7% 0.199 297.9)
XYZxyz(15.7698, 8.7001, 46.1865)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B30B8 #7DB830
analogous
#3039B8 #6B30B8 #AF30B8
triadic
#6B30B8 #B86B30 #30B86B
tetradic
#6B30B8 #B83039 #7DB830 #30B8AF
square
#6B30B8 #B83039 #7DB830 #30B8AF
split-complementary
#6B30B8 #B8AF30 #39B830
monochromatic
#331757 #4F2387 #6B30B8 #8A53D2 #AB84DF

Accessibility & contrast

On white

7.66
#6B30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B30B8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B30B8#FFFFFF#000000##FFFFFF
##6B30B81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b30b8;
/* rgb */ color: rgb(107, 48, 184);
/* oklch */ color: oklch(46.7% 0.199 297.9);
Tailwind
colors: {
  custom: {
    50: '#9c6ece',
    500: '#6b30b8',
    950: '#000000',
  },
}
SCSS
$custom: #6b30b8;
$custom-light: #9c6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6b30b8",
  "rgb": {
    "r": 107,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 266.029,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46697,
    "c": 0.19945,
    "h": 297.9
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#6B30B8
secondary
#A7C87C
accent
#E2469E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6B30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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