#662DB3#662DB3

#662DB3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.197 H 297.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#662DB3
RGBrgb(102, 45, 179)
HSLhsl(266, 60%, 44%)
HSVhsv(266, 75%, 70%)
CMYKcmyk(43%, 74.9%, 0%, 29.8%)
CIE-LABlab(33.89, 52.44, -61.18)
CIE-LCHlch(33.89, 80.58, 310.60°)
OKLaboklab(45.37% 0.0898 -0.1751)
OKLCHoklch(45.37% 0.197 297.2)
XYZxyz(14.5524, 7.9559, 43.4080)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DB3 #7AB32D
analogous
#2D37B3 #662DB3 #A92DB3
triadic
#662DB3 #B3662D #2DB366
tetradic
#662DB3 #B32D37 #7AB32D #2DB3A9
square
#662DB3 #B32D37 #7AB32D #2DB3A9
split-complementary
#662DB3 #B3A92D #37B32D
monochromatic
#2E1451 #4A2182 #662DB3 #854BD2 #A67CDE

Accessibility & contrast

On white

8.10
#662DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#662DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DB3
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DB3#FFFFFF#000000##FFFFFF
##662DB31.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#52506E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662db3;
/* rgb */ color: rgb(102, 45, 179);
/* oklch */ color: oklch(45.4% 0.197 297.2);
Tailwind
colors: {
  custom: {
    50: '#996ccb',
    500: '#662db3',
    950: '#000000',
  },
}
SCSS
$custom: #662db3;
$custom-light: #996ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#662db3",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 265.522,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45368,
    "c": 0.19676,
    "h": 297.2
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#662DB3
secondary
#A4C775
accent
#E345A0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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