#6C2DB5#6C2DB5

#6C2DB5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.200 H 299.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB5
RGBrgb(108, 45, 181)
HSLhsl(268, 60%, 44%)
HSVhsv(268, 75%, 71%)
CMYKcmyk(40.3%, 75.1%, 0%, 29%)
CIE-LABlab(34.80, 53.96, -60.84)
CIE-LCHlch(34.80, 81.32, 311.57°)
OKLaboklab(46.23% 0.0981 -0.1739)
OKLCHoklch(46.23% 0.2 299.4)
XYZxyz(15.4611, 8.4009, 44.5141)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB5 #76B52D
analogous
#2D32B5 #6C2DB5 #B02DB5
triadic
#6C2DB5 #B56C2D #2DB56C
tetradic
#6C2DB5 #B52D32 #76B52D #2DB5B0
square
#6C2DB5 #B52D32 #76B52D #2DB5B0
split-complementary
#6C2DB5 #B5B02D #32B52D
monochromatic
#321553 #4F2184 #6C2DB5 #8B4DD3 #AB7EDF

Accessibility & contrast

On white

7.84
#6C2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6C2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB5
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB5#FFFFFF#000000##FFFFFF
##6C2DB51.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#5B506F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2db5;
/* rgb */ color: rgb(108, 45, 181);
/* oklch */ color: oklch(46.2% 0.200 299.4);
Tailwind
colors: {
  custom: {
    50: '#9d6ccc',
    500: '#6c2db5',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db5;
$custom-light: #9d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db5",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 267.794,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46227,
    "c": 0.19964,
    "h": 299.4
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#6C2DB5
secondary
#A2C776
accent
#E3449A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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