#6C2DA5#6C2DA5

#6C2DA5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.183 H 303.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6C2DA5
RGBrgb(108, 45, 165)
HSLhsl(272, 57%, 41%)
HSVhsv(272, 73%, 65%)
CMYKcmyk(34.5%, 72.7%, 0%, 35.3%)
CIE-LABlab(33.52, 50.04, -53.37)
CIE-LCHlch(33.52, 73.16, 313.16°)
OKLaboklab(44.92% 0.1015 -0.1519)
OKLCHoklch(44.92% 0.183 303.8)
XYZxyz(13.9127, 7.7816, 36.3590)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DA5 #66A52D
analogous
#302DA5 #6C2DA5 #A52DA2
triadic
#6C2DA5 #A56C2D #2DA56C
tetradic
#6C2DA5 #A5302D #66A52D #2DA2A5
square
#6C2DA5 #A5302D #66A52D #2DA2A5
split-complementary
#6C2DA5 #A2A52D #2DA530
monochromatic
#2D1345 #4D2075 #6C2DA5 #8B43CC #A973D9

Accessibility & contrast

On white

8.21
#6C2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C2DA5
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DA5#FFFFFF#000000##FFFFFF
##6C2DA51.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#614A66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2da5;
/* rgb */ color: rgb(108, 45, 165);
/* oklch */ color: oklch(44.9% 0.183 303.8);
Tailwind
colors: {
  custom: {
    50: '#9b6cc1',
    500: '#6c2da5',
    950: '#000000',
  },
}
SCSS
$custom: #6c2da5;
$custom-light: #9b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2da5",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 271.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44924,
    "c": 0.1827,
    "h": 303.8
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#6C2DA5
secondary
#95C16D
accent
#E04790
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6C2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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