#6C30AB#6C30AB

#6C30AB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.186 H 301.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#6C30AB
RGBrgb(108, 48, 171)
HSLhsl(269, 56%, 43%)
HSVhsv(269, 72%, 67%)
CMYKcmyk(36.8%, 71.9%, 0%, 32.9%)
CIE-LABlab(34.48, 50.12, -55.41)
CIE-LCHlch(34.48, 74.72, 312.13°)
OKLaboklab(45.75% 0.0974 -0.1579)
OKLCHoklch(45.75% 0.186 301.7)
XYZxyz(14.5902, 8.2423, 39.3424)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C30AB #6FAB30
analogous
#3032AB #6C30AB #A930AB
triadic
#6C30AB #AB6C30 #30AB6C
tetradic
#6C30AB #AB3032 #6FAB30 #30ABA9
square
#6C30AB #AB3032 #6FAB30 #30ABA9
split-complementary
#6C30AB #ABA930 #32AB30
monochromatic
#30154B #4E237B #6C30AB #8B4CCD #AA7BDA

Accessibility & contrast

On white

7.93
#6C30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6C30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C30AB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C30AB#FFFFFF#000000##FFFFFF
##6C30AB1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#5F4E6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6c30ab;
/* rgb */ color: rgb(108, 48, 171);
/* oklch */ color: oklch(45.8% 0.186 301.7);
Tailwind
colors: {
  custom: {
    50: '#9c6ec5',
    500: '#6c30ab',
    950: '#000000',
  },
}
SCSS
$custom: #6c30ab;
$custom-light: #9c6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c30ab",
  "rgb": {
    "r": 108,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 269.268,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4575,
    "c": 0.18554,
    "h": 301.7
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#6C30AB
secondary
#9CC374
accent
#DF4896
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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