#6C45CB#6C45CB

#6C45CB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.196 H 291.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6C45CB
RGBrgb(108, 69, 203)
HSLhsl(257, 56%, 53%)
HSVhsv(257, 66%, 80%)
CMYKcmyk(46.8%, 66%, 0%, 20.4%)
CIE-LABlab(40.82, 47.87, -63.92)
CIE-LCHlch(40.82, 79.86, 306.83°)
OKLaboklab(51.06% 0.0711 -0.183)
OKLCHoklch(51.06% 0.196 291.2)
XYZxyz(19.0889, 11.7555, 57.7516)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C45CB #A4CB45
analogous
#4561CB #6C45CB #AF45CB
triadic
#6C45CB #CB6C45 #45CB6C
tetradic
#6C45CB #CB4561 #A4CB45 #45CBAF
square
#6C45CB #CB4561 #A4CB45 #45CBAF
split-complementary
#6C45CB #CBAF45 #61CB45
monochromatic
#392175 #512EA5 #6C45CB #9275D8 #B8A5E6

Accessibility & contrast

On white

6.27
#6C45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6C45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C45CB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C45CB#FFFFFF#000000##FFFFFF
##6C45CB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#4E6682
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6c45cb;
/* rgb */ color: rgb(108, 69, 203);
/* oklch */ color: oklch(51.1% 0.196 291.2);
Tailwind
colors: {
  custom: {
    50: '#9e7bdc',
    500: '#6c45cb',
    950: '#000000',
  },
}
SCSS
$custom: #6c45cb;
$custom-light: #9e7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c45cb",
  "rgb": {
    "r": 108,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 257.463,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51061,
    "c": 0.19633,
    "h": 291.2
  },
  "luminance": 0.11756
}

Semantic roles & 50–950 ramp

primary
#6C45CB
secondary
#C2D399
accent
#E048B4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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