#6D30B8#6D30B8

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

Color values

HEX#6D30B8
RGBrgb(109, 48, 184)
HSLhsl(267, 59%, 45%)
HSVhsv(267, 74%, 72%)
CMYKcmyk(40.8%, 73.9%, 0%, 27.8%)
CIE-LABlab(35.65, 53.54, -61.24)
CIE-LCHlch(35.65, 81.34, 311.16°)
OKLaboklab(46.93% 0.0962 -0.175)
OKLCHoklch(46.93% 0.2 298.8)
XYZxyz(16.0132, 8.8256, 46.1980)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D30B8 #7BB830
analogous
#3037B8 #6D30B8 #B130B8
triadic
#6D30B8 #B86D30 #30B86D
tetradic
#6D30B8 #B83037 #7BB830 #30B8B1
square
#6D30B8 #B83037 #7BB830 #30B8B1
split-complementary
#6D30B8 #B8B130 #37B830
monochromatic
#331757 #502387 #6D30B8 #8C53D2 #AD84DF

Accessibility & contrast

On white

7.59
#6D30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6D30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D30B8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D30B8#FFFFFF#000000##FFFFFF
##6D30B81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#5B5372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6d30b8;
/* rgb */ color: rgb(109, 48, 184);
/* oklch */ color: oklch(46.9% 0.200 298.8);
Tailwind
colors: {
  custom: {
    50: '#9d6ece',
    500: '#6d30b8',
    950: '#000000',
  },
}
SCSS
$custom: #6d30b8;
$custom-light: #9d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6d30b8",
  "rgb": {
    "r": 109,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 266.912,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46925,
    "c": 0.1997,
    "h": 298.8
  },
  "luminance": 0.08826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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