#6C2DB8#6C2DB8

#6C2DB8 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.203 H 298.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#6C2DB8
RGBrgb(108, 45, 184)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 76%, 72%)
CMYKcmyk(41.3%, 75.5%, 0%, 27.8%)
CIE-LABlab(35.05, 54.70, -62.21)
CIE-LCHlch(35.05, 82.84, 311.32°)
OKLaboklab(46.48% 0.0974 -0.1779)
OKLCHoklch(46.48% 0.203 298.7)
XYZxyz(15.7722, 8.5254, 46.1527)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2DB8 #79B82D
analogous
#2D34B8 #6C2DB8 #B12DB8
triadic
#6C2DB8 #B86C2D #2DB86C
tetradic
#6C2DB8 #B82D34 #79B82D #2DB8B1
square
#6C2DB8 #B82D34 #79B82D #2DB8B1
split-complementary
#6C2DB8 #B8B12D #34B82D
monochromatic
#321556 #4F2187 #6C2DB8 #8B4ED4 #AB80E0

Accessibility & contrast

On white

7.76
#6C2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6C2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2DB8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2DB8#FFFFFF#000000##FFFFFF
##6C2DB81.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#595271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2db8;
/* rgb */ color: rgb(108, 45, 184);
/* oklch */ color: oklch(46.5% 0.203 298.7);
Tailwind
colors: {
  custom: {
    50: '#9d6dce',
    500: '#6c2db8',
    950: '#000000',
  },
}
SCSS
$custom: #6c2db8;
$custom-light: #9d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2db8",
  "rgb": {
    "r": 108,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 267.194,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4648,
    "c": 0.2028,
    "h": 298.7
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#6C2DB8
secondary
#A4C978
accent
#E4449B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6C2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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