#662FA2#662FA2

#662FA2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.176 H 301.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#662FA2
RGBrgb(102, 47, 162)
HSLhsl(269, 55%, 41%)
HSVhsv(269, 71%, 64%)
CMYKcmyk(37%, 71%, 0%, 36.5%)
CIE-LABlab(32.85, 47.18, -52.70)
CIE-LCHlch(32.85, 70.73, 311.84°)
OKLaboklab(44.2% 0.0914 -0.1502)
OKLCHoklch(44.2% 0.176 301.3)
XYZxyz(13.0160, 7.4664, 34.9308)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA2 #6BA22F
analogous
#2F31A2 #662FA2 #9F2FA2
triadic
#662FA2 #A2662F #2FA266
tetradic
#662FA2 #A22F31 #6BA22F #2FA29F
square
#662FA2 #A22F31 #6BA22F #2FA29F
split-complementary
#662FA2 #A29F2F #31A22F
monochromatic
#2A1343 #482173 #662FA2 #8445C9 #A475D7

Accessibility & contrast

On white

8.42
#662FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#662FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA2#FFFFFF#000000##FFFFFF
##662FA21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#594A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #662fa2;
/* rgb */ color: rgb(102, 47, 162);
/* oklch */ color: oklch(44.2% 0.176 301.3);
Tailwind
colors: {
  custom: {
    50: '#976cbe',
    500: '#662fa2',
    950: '#000000',
  },
}
SCSS
$custom: #662fa2;
$custom-light: #976cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa2",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 268.696,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44199,
    "c": 0.17579,
    "h": 301.3
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#662FA2
secondary
#98BF6E
accent
#DE4997
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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