#662CD3#662CD3

#662CD3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.232 H 290.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#662CD3
RGBrgb(102, 44, 211)
HSLhsl(261, 65%, 50%)
HSVhsv(261, 79%, 83%)
CMYKcmyk(51.7%, 79.1%, 0%, 17.3%)
CIE-LABlab(36.61, 61.08, -75.47)
CIE-LCHlch(36.61, 97.09, 308.98°)
OKLaboklab(48.14% 0.0816 -0.217)
OKLCHoklch(48.14% 0.232 290.6)
XYZxyz(18.1347, 9.3285, 62.4604)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CD3 #99D32C
analogous
#2C46D3 #662CD3 #B92CD3
triadic
#662CD3 #D3662C #2CD366
tetradic
#662CD3 #D32C46 #99D32C #2CD3B9
square
#662CD3 #D32C46 #99D32C #2CD3B9
split-complementary
#662CD3 #D3B92C #46D32C
monochromatic
#35176E #4E21A0 #662CD3 #8B5FDE #AF91E8

Accessibility & contrast

On white

7.33
#662CD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#662CD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CD3
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CD3#FFFFFF#000000##FFFFFF
##662CD31.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#3E5D80
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #662cd3;
/* rgb */ color: rgb(102, 44, 211);
/* oklch */ color: oklch(48.1% 0.232 290.6);
Tailwind
colors: {
  custom: {
    50: '#9d6de2',
    500: '#662cd3',
    950: '#000000',
  },
}
SCSS
$custom: #662cd3;
$custom-light: #9d6de2;
$custom-dark: #000000;
JSON
{
  "hex": "#662cd3",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 211
  },
  "hsl": {
    "h": 260.838,
    "s": 65.49,
    "l": 50
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.23178,
    "h": 290.6
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#662CD3
secondary
#B9D388
accent
#E83FAE
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#100716
muted
#7F7A84

Preview Lab

Preview with #662CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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