#6C2BA8#6C2BA8

#6C2BA8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.188 H 303.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#6C2BA8
RGBrgb(108, 43, 168)
HSLhsl(271, 59%, 41%)
HSVhsv(271, 74%, 66%)
CMYKcmyk(35.7%, 74.4%, 0%, 34.1%)
CIE-LABlab(33.44, 51.66, -55.31)
CIE-LCHlch(33.44, 75.68, 313.05°)
OKLaboklab(44.94% 0.1029 -0.1576)
OKLCHoklch(44.94% 0.188 303.1)
XYZxyz(14.1144, 7.7431, 37.7892)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2BA8 #67A82B
analogous
#2E2BA8 #6C2BA8 #A82BA6
triadic
#6C2BA8 #A86C2B #2BA86C
tetradic
#6C2BA8 #A82E2B #67A82B #2BA6A8
square
#6C2BA8 #A82E2B #67A82B #2BA6A8
split-complementary
#6C2BA8 #A6A82B #2BA82E
monochromatic
#2D1247 #4D1F77 #6C2BA8 #8B42CF #A972DB

Accessibility & contrast

On white

8.24
#6C2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6C2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2BA8
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2BA8#FFFFFF#000000##FFFFFF
##6C2BA81.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#604A67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2ba8;
/* rgb */ color: rgb(108, 43, 168);
/* oklch */ color: oklch(44.9% 0.188 303.1);
Tailwind
colors: {
  custom: {
    50: '#9c6bc3',
    500: '#6c2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2ba8;
$custom-light: #9c6bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2ba8",
  "rgb": {
    "r": 108,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 271.2,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44939,
    "c": 0.1882,
    "h": 303.1
  },
  "luminance": 0.07743
}

Semantic roles & 50–950 ramp

primary
#6C2BA8
secondary
#96C26C
accent
#E24591
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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