#662CE2#662CE2

#662CE2 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.6% C 0.247 H 288.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#662CE2
RGBrgb(102, 44, 226)
HSLhsl(259, 76%, 53%)
HSVhsv(259, 81%, 89%)
CMYKcmyk(54.9%, 80.5%, 0%, 11.4%)
CIE-LABlab(38.05, 64.93, -81.72)
CIE-LCHlch(38.05, 104.38, 308.47°)
OKLaboklab(49.57% 0.0767 -0.2352)
OKLCHoklch(49.57% 0.247 288.1)
XYZxyz(20.1036, 10.1161, 72.8300)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CE2 #A8E22C
analogous
#2C4DE2 #662CE2 #C12CE2
triadic
#662CE2 #E2662C #2CE266
tetradic
#662CE2 #E22C4D #A8E22C #2CE2C1
square
#662CE2 #E22C4D #A8E22C #2CE2C1
split-complementary
#662CE2 #E2C12C #4DE22C
monochromatic
#361282 #4C19B8 #662CE2 #8D62E9 #B498F1

Accessibility & contrast

On white

6.95
#662CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#662CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #662CE2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CE2#FFFFFF#000000##FFFFFF
##662CE21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE7
Deuteranopia (green-blind)
#0055DF
Tritanopia (blue-blind)
#2F6389
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #662ce2;
/* rgb */ color: rgb(102, 44, 226);
/* oklch */ color: oklch(49.6% 0.247 288.1);
Tailwind
colors: {
  custom: {
    50: '#9f6eed',
    500: '#662ce2',
    950: '#000000',
  },
}
SCSS
$custom: #662ce2;
$custom-light: #9f6eed;
$custom-dark: #000000;
JSON
{
  "hex": "#662ce2",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 226
  },
  "hsl": {
    "h": 259.121,
    "s": 75.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.2474,
    "h": 288.1
  },
  "luminance": 0.10117
}

Semantic roles & 50–950 ramp

primary
#662CE2
secondary
#C3DC8E
accent
#F235B6
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #662CE2

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

Preview Lab → · Contrast checker → · Palette generator →

#662CE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva