#6D45C8#6D45C8

#6D45C8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.193 H 292.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6D45C8
RGBrgb(109, 69, 200)
HSLhsl(258, 54%, 53%)
HSVhsv(258, 66%, 78%)
CMYKcmyk(45.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(40.70, 47.23, -62.38)
CIE-LCHlch(40.70, 78.25, 307.13°)
OKLaboklab(50.92% 0.0728 -0.1785)
OKLCHoklch(50.92% 0.193 292.2)
XYZxyz(18.8572, 11.6770, 55.8927)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D45C8 #A0C845
analogous
#455EC8 #6D45C8 #AF45C8
triadic
#6D45C8 #C86D45 #45C86D
tetradic
#6D45C8 #C8455E #A0C845 #45C8AF
square
#6D45C8 #C8455E #A0C845 #45C8AF
split-complementary
#6D45C8 #C8AF45 #5EC845
monochromatic
#3A2171 #522FA0 #6D45C8 #9274D6 #B7A3E4

Accessibility & contrast

On white

6.30
#6D45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6D45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D45C8
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D45C8#FFFFFF#000000##FFFFFF
##6D45C81.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#526480
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d45c8;
/* rgb */ color: rgb(109, 69, 200);
/* oklch */ color: oklch(50.9% 0.193 292.2);
Tailwind
colors: {
  custom: {
    50: '#9e7bda',
    500: '#6d45c8',
    950: '#000000',
  },
}
SCSS
$custom: #6d45c8;
$custom-light: #9e7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#6d45c8",
  "rgb": {
    "r": 109,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 258.321,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50921,
    "c": 0.19275,
    "h": 292.2
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#6D45C8
secondary
#BFD198
accent
#DE4AB1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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