#6C2CA8#6C2CA8

#6C2CA8 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.187 H 303.0°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#6C2CA8
RGBrgb(108, 44, 168)
HSLhsl(271, 58%, 42%)
HSVhsv(271, 74%, 66%)
CMYKcmyk(35.7%, 73.8%, 0%, 34.1%)
CIE-LABlab(33.60, 51.22, -55.05)
CIE-LCHlch(33.60, 75.19, 312.94°)
OKLaboklab(45.05% 0.1019 -0.1568)
OKLCHoklch(45.05% 0.187 303)
XYZxyz(14.1512, 7.8167, 37.8014)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2CA8 #68A82C
analogous
#2E2CA8 #6C2CA8 #A82CA6
triadic
#6C2CA8 #A86C2C #2CA86C
tetradic
#6C2CA8 #A82E2C #68A82C #2CA6A8
square
#6C2CA8 #A82E2C #68A82C #2CA6A8
split-complementary
#6C2CA8 #A6A82C #2CA82E
monochromatic
#2E1347 #4D1F78 #6C2CA8 #8B43CE #A974DB

Accessibility & contrast

On white

8.19
#6C2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6C2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2CA8
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2CA8#FFFFFF#000000##FFFFFF
##6C2CA81.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#604B68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2ca8;
/* rgb */ color: rgb(108, 44, 168);
/* oklch */ color: oklch(45.1% 0.187 303.0);
Tailwind
colors: {
  custom: {
    50: '#9b6bc3',
    500: '#6c2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ca8;
$custom-light: #9b6bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ca8",
  "rgb": {
    "r": 108,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 270.968,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4505,
    "c": 0.18706,
    "h": 303
  },
  "luminance": 0.07817
}

Semantic roles & 50–950 ramp

primary
#6C2CA8
secondary
#97C26E
accent
#E24691
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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