#663FDF#663FDF

#663FDF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.227 H 286.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#663FDF
RGBrgb(102, 63, 223)
HSLhsl(255, 71%, 56%)
HSVhsv(255, 72%, 87%)
CMYKcmyk(54.3%, 71.7%, 0%, 12.5%)
CIE-LABlab(40.75, 55.61, -75.57)
CIE-LCHlch(40.75, 93.83, 306.35°)
OKLaboklab(51.37% 0.0646 -0.2174)
OKLCHoklch(51.37% 0.227 286.6)
XYZxyz(20.5723, 11.7064, 70.9733)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#663FDF #B8DF3F
analogous
#3F68DF #663FDF #B63FDF
triadic
#663FDF #DF663F #3FDF66
tetradic
#663FDF #DF3F68 #B8DF3F #3FDFB6
square
#663FDF #DF3F68 #B8DF3F #3FDFB6
split-complementary
#663FDF #DFB63F #68DF3F
monochromatic
#34178C #4720C1 #663FDF #9073E8 #BAA8F0

Accessibility & contrast

On white

6.28
#663FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#663FDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #663FDF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##663FDF#FFFFFF#000000##FFFFFF
##663FDF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#005BDC
Tritanopia (blue-blind)
#316A8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #663fdf;
/* rgb */ color: rgb(102, 63, 223);
/* oklch */ color: oklch(51.4% 0.227 286.6);
Tailwind
colors: {
  custom: {
    50: '#9d78ea',
    500: '#663fdf',
    950: '#000000',
  },
}
SCSS
$custom: #663fdf;
$custom-light: #9d78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#663fdf",
  "rgb": {
    "r": 102,
    "g": 63,
    "b": 223
  },
  "hsl": {
    "h": 254.625,
    "s": 71.429,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51372,
    "c": 0.22679,
    "h": 286.6
  },
  "luminance": 0.11708
}

Semantic roles & 50–950 ramp

primary
#663FDF
secondary
#CEDE9C
accent
#EE3AC2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #663FDF

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

Preview Lab → · Contrast checker → · Palette generator →

#663FDF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva