#662FAE#662FAE

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

Color values

HEX#662FAE
RGBrgb(102, 47, 174)
HSLhsl(266, 57%, 43%)
HSVhsv(266, 73%, 68%)
CMYKcmyk(41.4%, 73%, 0%, 31.8%)
CIE-LABlab(33.80, 50.23, -58.34)
CIE-LCHlch(33.80, 76.99, 310.73°)
OKLaboklab(45.18% 0.0891 -0.1668)
OKLCHoklch(45.18% 0.189 298.1)
XYZxyz(14.1340, 7.9136, 40.8190)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FAE #77AE2F
analogous
#2F38AE #662FAE #A52FAE
triadic
#662FAE #AE662F #2FAE66
tetradic
#662FAE #AE2F38 #77AE2F #2FAEA5
square
#662FAE #AE2F38 #77AE2F #2FAEA5
split-complementary
#662FAE #AEA52F #38AE2F
monochromatic
#2E154E #4A227E #662FAE #844CCF #A57CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662FAE#FFFFFF#000000##FFFFFF
##662FAE1.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)
#0050B2
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#544F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662fae;
/* rgb */ color: rgb(102, 47, 174);
/* oklch */ color: oklch(45.2% 0.189 298.1);
Tailwind
colors: {
  custom: {
    50: '#986dc7',
    500: '#662fae',
    950: '#000000',
  },
}
SCSS
$custom: #662fae;
$custom-light: #986dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#662fae",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 265.984,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45176,
    "c": 0.18908,
    "h": 298.1
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#662FAE
secondary
#A2C475
accent
#E1479E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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