#6D45CB#6D45CB

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

Color values

HEX#6D45CB
RGBrgb(109, 69, 203)
HSLhsl(258, 56%, 53%)
HSVhsv(258, 66%, 80%)
CMYKcmyk(46.3%, 66%, 0%, 20.4%)
CIE-LABlab(40.93, 48.06, -63.75)
CIE-LCHlch(40.93, 79.84, 307.01°)
OKLaboklab(51.16% 0.0725 -0.1825)
OKLCHoklch(51.16% 0.196 291.7)
XYZxyz(19.2113, 11.8186, 57.7573)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D45CB #A3CB45
analogous
#4560CB #6D45CB #B045CB
triadic
#6D45CB #CB6D45 #45CB6D
tetradic
#6D45CB #CB4560 #A3CB45 #45CBB0
square
#6D45CB #CB4560 #A3CB45 #45CBB0
split-complementary
#6D45CB #CBB045 #60CB45
monochromatic
#3A2175 #512EA5 #6D45CB #9375D8 #B8A5E6

Accessibility & contrast

On white

6.24
#6D45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6D45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D45CB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D45CB#FFFFFF#000000##FFFFFF
##6D45CB1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#506682
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d45cb;
/* rgb */ color: rgb(109, 69, 203);
/* oklch */ color: oklch(51.2% 0.196 291.7);
Tailwind
colors: {
  custom: {
    50: '#9e7bdc',
    500: '#6d45cb',
    950: '#000000',
  },
}
SCSS
$custom: #6d45cb;
$custom-light: #9e7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6d45cb",
  "rgb": {
    "r": 109,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 257.91,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51157,
    "c": 0.19635,
    "h": 291.7
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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