#662EB0#662EB0

#662EB0 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.192 H 297.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#662EB0
RGBrgb(102, 46, 176)
HSLhsl(266, 59%, 44%)
HSVhsv(266, 74%, 69%)
CMYKcmyk(42%, 73.9%, 0%, 31%)
CIE-LABlab(33.80, 51.21, -59.54)
CIE-LCHlch(33.80, 78.54, 310.70°)
OKLaboklab(45.23% 0.0896 -0.1703)
OKLCHoklch(45.23% 0.192 297.8)
XYZxyz(14.2909, 7.9131, 41.8403)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB0 #78B02E
analogous
#2E37B0 #662EB0 #A72EB0
triadic
#662EB0 #B0662E #2EB066
tetradic
#662EB0 #B02E37 #78B02E #2EB0A7
square
#662EB0 #B02E37 #78B02E #2EB0A7
split-complementary
#662EB0 #B0A72E #37B02E
monochromatic
#2E154F #4A217F #662EB0 #844BD0 #A57CDD

Accessibility & contrast

On white

8.13
#662EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#662EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EB0
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EB0#FFFFFF#000000##FFFFFF
##662EB01.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#534F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662eb0;
/* rgb */ color: rgb(102, 46, 176);
/* oklch */ color: oklch(45.2% 0.192 297.8);
Tailwind
colors: {
  custom: {
    50: '#986cc9',
    500: '#662eb0',
    950: '#000000',
  },
}
SCSS
$custom: #662eb0;
$custom-light: #986cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb0",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 265.846,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45227,
    "c": 0.1924,
    "h": 297.8
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#662EB0
secondary
#A2C575
accent
#E2469F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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