#6C2BA6#6C2BA6

#6C2BA6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.186 H 303.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#6C2BA6
RGBrgb(108, 43, 166)
HSLhsl(272, 59%, 41%)
HSVhsv(272, 74%, 65%)
CMYKcmyk(34.9%, 74.1%, 0%, 34.9%)
CIE-LABlab(33.28, 51.18, -54.36)
CIE-LCHlch(33.28, 74.66, 313.28°)
OKLaboklab(44.78% 0.1033 -0.1548)
OKLCHoklch(44.78% 0.186 303.7)
XYZxyz(13.9296, 7.6691, 36.8154)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2BA6 #65A62B
analogous
#2E2BA6 #6C2BA6 #A62BA2
triadic
#6C2BA6 #A66C2B #2BA66C
tetradic
#6C2BA6 #A62E2B #65A62B #2BA2A6
square
#6C2BA6 #A62E2B #65A62B #2BA2A6
split-complementary
#6C2BA6 #A2A62B #2BA62E
monochromatic
#2D1245 #4C1E75 #6C2BA6 #8B41CE #A971DA

Accessibility & contrast

On white

8.29
#6C2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6C2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2BA6
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2BA6#FFFFFF#000000##FFFFFF
##6C2BA61.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#614966
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c2ba6;
/* rgb */ color: rgb(108, 43, 166);
/* oklch */ color: oklch(44.8% 0.186 303.7);
Tailwind
colors: {
  custom: {
    50: '#9b6bc1',
    500: '#6c2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ba6;
$custom-light: #9b6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ba6",
  "rgb": {
    "r": 108,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 271.707,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44778,
    "c": 0.1861,
    "h": 303.7
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#6C2BA6
secondary
#94C16B
accent
#E2468F
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6C2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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