#662CCF#662CCF

#662CCF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.228 H 291.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#662CCF
RGBrgb(102, 44, 207)
HSLhsl(261, 65%, 49%)
HSVhsv(261, 79%, 81%)
CMYKcmyk(50.7%, 78.7%, 0%, 18.8%)
CIE-LABlab(36.23, 60.05, -73.77)
CIE-LCHlch(36.23, 95.13, 309.15°)
OKLaboklab(47.77% 0.0828 -0.212)
OKLCHoklch(47.77% 0.228 291.3)
XYZxyz(17.6394, 9.1304, 59.8523)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CCF #95CF2C
analogous
#2C43CF #662CCF #B82CCF
triadic
#662CCF #CF662C #2CCF66
tetradic
#662CCF #CF2C43 #95CF2C #2CCFB8
square
#662CCF #CF2C43 #95CF2C #2CCFB8
split-complementary
#662CCF #CFB82C #43CF2C
monochromatic
#34176A #4D219D #662CCF #8A5CDC #AE8EE7

Accessibility & contrast

On white

7.43
#662CCF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#662CCF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CCF
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CCF#FFFFFF#000000##FFFFFF
##662CCF1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#415B7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #662ccf;
/* rgb */ color: rgb(102, 44, 207);
/* oklch */ color: oklch(47.8% 0.228 291.3);
Tailwind
colors: {
  custom: {
    50: '#9c6ddf',
    500: '#662ccf',
    950: '#000000',
  },
}
SCSS
$custom: #662ccf;
$custom-light: #9c6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#662ccf",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 207
  },
  "hsl": {
    "h": 261.35,
    "s": 64.94,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.22759,
    "h": 291.3
  },
  "luminance": 0.09131
}

Semantic roles & 50–950 ramp

primary
#662CCF
secondary
#B6D185
accent
#E840AC
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #662CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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