#6645D4#6645D4

#6645D4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.207 H 287.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6645D4
RGBrgb(102, 69, 212)
HSLhsl(254, 62%, 55%)
HSVhsv(254, 67%, 83%)
CMYKcmyk(51.9%, 67.5%, 0%, 16.9%)
CIE-LABlab(40.95, 49.36, -68.93)
CIE-LCHlch(40.95, 84.78, 305.60°)
OKLaboklab(51.23% 0.0616 -0.1979)
OKLCHoklch(51.23% 0.207 287.3)
XYZxyz(19.4878, 11.8335, 63.5318)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6645D4 #B3D445
analogous
#456CD4 #6645D4 #AD45D4
triadic
#6645D4 #D46645 #45D466
tetradic
#6645D4 #D4456C #B3D445 #45D4AD
square
#6645D4 #D4456C #B3D445 #45D4AD
split-complementary
#6645D4 #D4AD45 #6CD445
monochromatic
#351E81 #4929B3 #6645D4 #8F77DF #B8A8EB

Accessibility & contrast

On white

6.24
#6645D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6645D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6645D4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6645D4#FFFFFF#000000##FFFFFF
##6645D41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#3C6987
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6645d4;
/* rgb */ color: rgb(102, 69, 212);
/* oklch */ color: oklch(51.2% 0.207 287.3);
Tailwind
colors: {
  custom: {
    50: '#9b7be2',
    500: '#6645d4',
    950: '#000000',
  },
}
SCSS
$custom: #6645d4;
$custom-light: #9b7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#6645d4",
  "rgb": {
    "r": 102,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 253.846,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.20729,
    "h": 287.3
  },
  "luminance": 0.11834
}

Semantic roles & 50–950 ramp

primary
#6645D4
secondary
#CBD89C
accent
#E642C0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6645D4

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

Preview Lab → · Contrast checker → · Palette generator →

#6645D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva