#662FAA#662FAA

#662FAA is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.185 H 299.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#662FAA
RGBrgb(102, 47, 170)
HSLhsl(267, 57%, 43%)
HSVhsv(267, 72%, 67%)
CMYKcmyk(40%, 72.4%, 0%, 33.3%)
CIE-LABlab(33.48, 49.21, -56.48)
CIE-LCHlch(33.48, 74.91, 311.06°)
OKLaboklab(44.85% 0.0899 -0.1613)
OKLCHoklch(44.85% 0.185 299.1)
XYZxyz(13.7499, 7.7599, 38.7958)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FAA #73AA2F
analogous
#2F36AA #662FAA #A32FAA
triadic
#662FAA #AA662F #2FAA66
tetradic
#662FAA #AA2F36 #73AA2F #2FAAA3
square
#662FAA #AA2F36 #73AA2F #2FAAA3
split-complementary
#662FAA #AAA32F #36AA2F
monochromatic
#2C144A #49227A #662FAA #8449CD #A579DA

Accessibility & contrast

On white

8.23
#662FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#662FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FAA
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FAA#FFFFFF#000000##FFFFFF
##662FAA1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#564E69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662faa;
/* rgb */ color: rgb(102, 47, 170);
/* oklch */ color: oklch(44.8% 0.185 299.1);
Tailwind
colors: {
  custom: {
    50: '#986cc4',
    500: '#662faa',
    950: '#000000',
  },
}
SCSS
$custom: #662faa;
$custom-light: #986cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#662faa",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 266.829,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44845,
    "c": 0.18466,
    "h": 299.1
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#662FAA
secondary
#9FC272
accent
#E0489C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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