#664CE3#664CE3

#664CE3 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.5% C 0.217 H 284.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#664CE3
RGBrgb(102, 76, 227)
HSLhsl(250, 73%, 59%)
HSVhsv(250, 67%, 89%)
CMYKcmyk(55.1%, 66.5%, 0%, 11%)
CIE-LABlab(43.56, 49.91, -73.24)
CIE-LCHlch(43.56, 88.62, 304.27°)
OKLaboklab(53.49% 0.0532 -0.2106)
OKLCHoklch(53.49% 0.217 284.2)
XYZxyz(21.9248, 13.5384, 74.1160)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CE3 #C9E34C
analogous
#4C7EE3 #664CE3 #B24CE3
triadic
#664CE3 #E3664C #4CE366
tetradic
#664CE3 #E34C7E #C9E34C #4CE3B2
square
#664CE3 #E34C7E #C9E34C #4CE3B2
split-complementary
#664CE3 #E3B24C #7EE34C
monochromatic
#2F189C #3F21D1 #664CE3 #9381EB #C0B6F4

Accessibility & contrast

On white

5.66
#664CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#664CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CE3
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CE3#FFFFFF#000000##FFFFFF
##664CE31.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE8
Deuteranopia (green-blind)
#0062E0
Tritanopia (blue-blind)
#2B7391
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #664ce3;
/* rgb */ color: rgb(102, 76, 227);
/* oklch */ color: oklch(53.5% 0.217 284.2);
Tailwind
colors: {
  custom: {
    50: '#9d80ed',
    500: '#664ce3',
    950: '#000000',
  },
}
SCSS
$custom: #664ce3;
$custom-light: #9d80ed;
$custom-dark: #000000;
JSON
{
  "hex": "#664ce3",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 250.331,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.21719,
    "h": 284.2
  },
  "luminance": 0.1354
}

Semantic roles & 50–950 ramp

primary
#664CE3
secondary
#D9E3A8
accent
#F038D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CE3

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

Preview Lab → · Contrast checker → · Palette generator →

#664CE3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva