#6C45E1#6C45E1

#6C45E1 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.222 H 287.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6C45E1
RGBrgb(108, 69, 225)
HSLhsl(255, 72%, 58%)
HSVhsv(255, 69%, 88%)
CMYKcmyk(52%, 69.3%, 0%, 11.8%)
CIE-LABlab(42.58, 54.02, -73.68)
CIE-LCHlch(42.58, 91.36, 306.25°)
OKLaboklab(52.86% 0.0676 -0.2117)
OKLCHoklch(52.86% 0.222 287.7)
XYZxyz(21.8991, 12.8796, 72.5517)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C45E1 #BAE145
analogous
#456CE1 #6C45E1 #BA45E1
triadic
#6C45E1 #E16C45 #45E16C
tetradic
#6C45E1 #E1456C #BAE145 #45E1BA
square
#6C45E1 #E1456C #BAE145 #45E1BA
split-complementary
#6C45E1 #E1BA45 #6CE145
monochromatic
#371894 #4A20C8 #6C45E1 #967AE9 #BFAEF2

Accessibility & contrast

On white

5.87
#6C45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6C45E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C45E1
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C45E1#FFFFFF#000000##FFFFFF
##6C45E11.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#3F6E8E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6c45e1;
/* rgb */ color: rgb(108, 69, 225);
/* oklch */ color: oklch(52.9% 0.222 287.7);
Tailwind
colors: {
  custom: {
    50: '#a07cec',
    500: '#6c45e1',
    950: '#000000',
  },
}
SCSS
$custom: #6c45e1;
$custom-light: #a07cec;
$custom-dark: #000000;
JSON
{
  "hex": "#6c45e1",
  "rgb": {
    "r": 108,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 255,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52865,
    "c": 0.22223,
    "h": 287.7
  },
  "luminance": 0.12881
}

Semantic roles & 50–950 ramp

primary
#6C45E1
secondary
#D1E0A2
accent
#EF39C1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6C45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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