#6A45CE#6A45CE

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

Color values

HEX#6A45CE
RGBrgb(106, 69, 206)
HSLhsl(256, 58%, 54%)
HSVhsv(256, 67%, 81%)
CMYKcmyk(48.5%, 66.5%, 0%, 19.2%)
CIE-LABlab(40.86, 48.35, -65.61)
CIE-LCHlch(40.86, 81.50, 306.39°)
OKLaboklab(51.11% 0.0679 -0.188)
OKLCHoklch(51.11% 0.2 289.9)
XYZxyz(19.2094, 11.7759, 59.6414)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A45CE #A9CE45
analogous
#4565CE #6A45CE #AE45CE
triadic
#6A45CE #CE6A45 #45CE6A
tetradic
#6A45CE #CE4565 #A9CE45 #45CEAE
square
#6A45CE #CE4565 #A9CE45 #45CEAE
split-complementary
#6A45CE #CEAE45 #65CE45
monochromatic
#382079 #4E2DA9 #6A45CE #9175DB #B8A6E8

Accessibility & contrast

On white

6.26
#6A45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6A45CE
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A45CE#FFFFFF#000000##FFFFFF
##6A45CE1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#496784
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6a45ce;
/* rgb */ color: rgb(106, 69, 206);
/* oklch */ color: oklch(51.1% 0.200 289.9);
Tailwind
colors: {
  custom: {
    50: '#9d7bde',
    500: '#6a45ce',
    950: '#000000',
  },
}
SCSS
$custom: #6a45ce;
$custom-light: #9d7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#6a45ce",
  "rgb": {
    "r": 106,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 256.204,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5111,
    "c": 0.19994,
    "h": 289.9
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#6A45CE
secondary
#C5D59A
accent
#E246B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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