#6C30A2#6C30A2

#6C30A2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.176 H 304.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6C30A2
RGBrgb(108, 48, 162)
HSLhsl(272, 54%, 41%)
HSVhsv(272, 70%, 64%)
CMYKcmyk(33.3%, 70.4%, 0%, 36.5%)
CIE-LABlab(33.80, 47.91, -51.12)
CIE-LCHlch(33.80, 70.06, 313.14°)
OKLaboklab(45.05% 0.0989 -0.1453)
OKLCHoklch(45.05% 0.176 304.2)
XYZxyz(13.7614, 7.9107, 34.9774)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C30A2 #66A230
analogous
#3330A2 #6C30A2 #A2309F
triadic
#6C30A2 #A26C30 #30A26C
tetradic
#6C30A2 #A23330 #66A230 #309FA2
square
#6C30A2 #A23330 #66A230 #309FA2
split-complementary
#6C30A2 #9FA230 #30A233
monochromatic
#2D1444 #4D2273 #6C30A2 #8B47C8 #A976D6

Accessibility & contrast

On white

8.13
#6C30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6C30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C30A2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C30A2#FFFFFF#000000##FFFFFF
##6C30A21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#624A65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c30a2;
/* rgb */ color: rgb(108, 48, 162);
/* oklch */ color: oklch(45.0% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#9b6dbe',
    500: '#6c30a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c30a2;
$custom-light: #9b6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6c30a2",
  "rgb": {
    "r": 108,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 271.579,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45046,
    "c": 0.17577,
    "h": 304.2
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#6C30A2
secondary
#95BE6F
accent
#DE4A90
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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