#662ED3#662ED3

#662ED3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.230 H 290.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#662ED3
RGBrgb(102, 46, 211)
HSLhsl(260, 65%, 50%)
HSVhsv(260, 78%, 83%)
CMYKcmyk(51.7%, 78.2%, 0%, 17.3%)
CIE-LABlab(36.89, 60.26, -75.00)
CIE-LCHlch(36.89, 96.21, 308.78°)
OKLaboklab(48.34% 0.0802 -0.2156)
OKLCHoklch(48.34% 0.23 290.4)
XYZxyz(18.2110, 9.4811, 62.4859)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662ED3 #9BD32E
analogous
#2E48D3 #662ED3 #B92ED3
triadic
#662ED3 #D3662E #2ED366
tetradic
#662ED3 #D32E48 #9BD32E #2ED3B9
square
#662ED3 #D32E48 #9BD32E #2ED3B9
split-complementary
#662ED3 #D3B92E #48D32E
monochromatic
#35176F #4D22A2 #662ED3 #8B61DE #B093E8

Accessibility & contrast

On white

7.25
#662ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#662ED3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662ED3
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662ED3#FFFFFF#000000##FFFFFF
##662ED31.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#3E5E80
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #662ed3;
/* rgb */ color: rgb(102, 46, 211);
/* oklch */ color: oklch(48.3% 0.230 290.4);
Tailwind
colors: {
  custom: {
    50: '#9d6ee2',
    500: '#662ed3',
    950: '#000000',
  },
}
SCSS
$custom: #662ed3;
$custom-light: #9d6ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#662ed3",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 260.364,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4834,
    "c": 0.23004,
    "h": 290.4
  },
  "luminance": 0.09482
}

Semantic roles & 50–950 ramp

primary
#662ED3
secondary
#BAD38A
accent
#E840AF
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #662ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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