#662FA7#662FA7

#662FA7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.181 H 299.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#662FA7
RGBrgb(102, 47, 167)
HSLhsl(268, 56%, 42%)
HSVhsv(268, 72%, 65%)
CMYKcmyk(38.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(33.24, 48.45, -55.07)
CIE-LCHlch(33.24, 73.35, 311.34°)
OKLaboklab(44.6% 0.0905 -0.1571)
OKLCHoklch(44.6% 0.181 299.9)
XYZxyz(13.4693, 7.6477, 37.3182)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA7 #70A72F
analogous
#2F34A7 #662FA7 #A22FA7
triadic
#662FA7 #A7662F #2FA766
tetradic
#662FA7 #A72F34 #70A72F #2FA7A2
square
#662FA7 #A72F34 #70A72F #2FA7A2
split-complementary
#662FA7 #A7A22F #34A72F
monochromatic
#2C1447 #492277 #662FA7 #8448CB #A478D9

Accessibility & contrast

On white

8.30
#662FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#662FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA7#FFFFFF#000000##FFFFFF
##662FA71.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#574C68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662fa7;
/* rgb */ color: rgb(102, 47, 167);
/* oklch */ color: oklch(44.6% 0.181 299.9);
Tailwind
colors: {
  custom: {
    50: '#976cc2',
    500: '#662fa7',
    950: '#000000',
  },
}
SCSS
$custom: #662fa7;
$custom-light: #976cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa7",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 267.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44601,
    "c": 0.18134,
    "h": 299.9
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#662FA7
secondary
#9CC171
accent
#DF489A
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #662FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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