#6C2DAB#6C2DAB

#6C2DAB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.189 H 302.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6C2DAB
RGBrgb(108, 45, 171)
HSLhsl(270, 58%, 42%)
HSVhsv(270, 74%, 67%)
CMYKcmyk(36.8%, 73.7%, 0%, 32.9%)
CIE-LABlab(33.99, 51.50, -56.21)
CIE-LCHlch(33.99, 76.23, 312.50°)
OKLaboklab(45.4% 0.1003 -0.1602)
OKLCHoklch(45.4% 0.189 302.1)
XYZxyz(14.4717, 8.0051, 39.3029)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DAB #6CAB2D
analogous
#2D2DAB #6C2DAB #AB2DAB
triadic
#6C2DAB #AB6C2D #2DAB6C
tetradic
#6C2DAB #AB2D2D #6CAB2D #2DABAB
square
#6C2DAB #AB2D2D #6CAB2D #2DABAB
split-complementary
#6C2DAB #ABAB2D #2DAB2D
monochromatic
#2F144A #4D207B #6C2DAB #8B47CE #A977DB

Accessibility & contrast

On white

8.07
#6C2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6C2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DAB
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DAB#FFFFFF#000000##FFFFFF
##6C2DAB1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.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: #6c2dab;
/* rgb */ color: rgb(108, 45, 171);
/* oklch */ color: oklch(45.4% 0.189 302.1);
Tailwind
colors: {
  custom: {
    50: '#9c6cc5',
    500: '#6c2dab',
    950: '#000000',
  },
}
SCSS
$custom: #6c2dab;
$custom-light: #9c6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2dab",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 270,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45403,
    "c": 0.18907,
    "h": 302.1
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#6C2DAB
secondary
#9AC371
accent
#E24694
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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