#6C45CD#6C45CD

#6C45CD is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.199 H 290.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6C45CD
RGBrgb(108, 69, 205)
HSLhsl(257, 58%, 54%)
HSVhsv(257, 66%, 80%)
CMYKcmyk(47.3%, 66.3%, 0%, 19.6%)
CIE-LABlab(40.98, 48.43, -64.83)
CIE-LCHlch(40.98, 80.92, 306.76°)
OKLaboklab(51.22% 0.0708 -0.1857)
OKLCHoklch(51.22% 0.199 290.9)
XYZxyz(19.3288, 11.8514, 59.0149)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C45CD #A6CD45
analogous
#4562CD #6C45CD #B045CD
triadic
#6C45CD #CD6C45 #45CD6C
tetradic
#6C45CD #CD4562 #A6CD45 #45CDB0
square
#6C45CD #CD4562 #A6CD45 #45CDB0
split-complementary
#6C45CD #CDB045 #62CD45
monochromatic
#392077 #502DA8 #6C45CD #9275DA #B8A5E7

Accessibility & contrast

On white

6.23
#6C45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6C45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C45CD
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C45CD#FFFFFF#000000##FFFFFF
##6C45CD1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#4D6683
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6c45cd;
/* rgb */ color: rgb(108, 69, 205);
/* oklch */ color: oklch(51.2% 0.199 290.9);
Tailwind
colors: {
  custom: {
    50: '#9e7bdd',
    500: '#6c45cd',
    950: '#000000',
  },
}
SCSS
$custom: #6c45cd;
$custom-light: #9e7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c45cd",
  "rgb": {
    "r": 108,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 257.206,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5122,
    "c": 0.19872,
    "h": 290.9
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#6C45CD
secondary
#C3D49A
accent
#E147B5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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