#6C2CAB#6C2CAB

#6C2CAB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.190 H 302.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6C2CAB
RGBrgb(108, 44, 171)
HSLhsl(270, 59%, 42%)
HSVhsv(270, 74%, 67%)
CMYKcmyk(36.8%, 74.3%, 0%, 32.9%)
CIE-LABlab(33.84, 51.95, -56.46)
CIE-LCHlch(33.84, 76.72, 312.62°)
OKLaboklab(45.29% 0.1013 -0.161)
OKLCHoklch(45.29% 0.19 302.2)
XYZxyz(14.4339, 7.9297, 39.2903)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2CAB #6BAB2C
analogous
#2C2CAB #6C2CAB #AB2CAB
triadic
#6C2CAB #AB6C2C #2CAB6C
tetradic
#6C2CAB #AB2C2C #6BAB2C #2CABAB
square
#6C2CAB #AB2C2C #6BAB2C #2CABAB
split-complementary
#6C2CAB #ABAB2C #2CAB2C
monochromatic
#2F134A #4D1F7A #6C2CAB #8B45CF #A976DC

Accessibility & contrast

On white

8.12
#6C2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6C2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2CAB
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2CAB#FFFFFF#000000##FFFFFF
##6C2CAB1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#5F4C69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c2cab;
/* rgb */ color: rgb(108, 44, 171);
/* oklch */ color: oklch(45.3% 0.190 302.2);
Tailwind
colors: {
  custom: {
    50: '#9c6bc5',
    500: '#6c2cab',
    950: '#000000',
  },
}
SCSS
$custom: #6c2cab;
$custom-light: #9c6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2cab",
  "rgb": {
    "r": 108,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 270.236,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.19021,
    "h": 302.2
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#6C2CAB
secondary
#99C36F
accent
#E24693
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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