#6C2DA8#6C2DA8

#6C2DA8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.186 H 302.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6C2DA8
RGBrgb(108, 45, 168)
HSLhsl(271, 58%, 42%)
HSVhsv(271, 73%, 66%)
CMYKcmyk(35.7%, 73.2%, 0%, 34.1%)
CIE-LABlab(33.76, 50.77, -54.79)
CIE-LCHlch(33.76, 74.70, 312.82°)
OKLaboklab(45.16% 0.1009 -0.1561)
OKLCHoklch(45.16% 0.186 302.9)
XYZxyz(14.1889, 7.8921, 37.8140)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DA8 #69A82D
analogous
#2F2DA8 #6C2DA8 #A82DA7
triadic
#6C2DA8 #A86C2D #2DA86C
tetradic
#6C2DA8 #A82F2D #69A82D #2DA7A8
square
#6C2DA8 #A82F2D #69A82D #2DA7A8
split-complementary
#6C2DA8 #A7A82D #2DA82F
monochromatic
#2E1347 #4D2078 #6C2DA8 #8B45CD #A975DA

Accessibility & contrast

On white

8.14
#6C2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6C2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DA8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DA8#FFFFFF#000000##FFFFFF
##6C2DA81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#604B68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c2da8;
/* rgb */ color: rgb(108, 45, 168);
/* oklch */ color: oklch(45.2% 0.186 302.9);
Tailwind
colors: {
  custom: {
    50: '#9b6cc3',
    500: '#6c2da8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2da8;
$custom-light: #9b6cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2da8",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 270.732,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.18588,
    "h": 302.9
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#6C2DA8
secondary
#97C26F
accent
#E14792
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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