#662EAF#662EAF

#662EAF is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.191 H 298.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#662EAF
RGBrgb(102, 46, 175)
HSLhsl(266, 58%, 43%)
HSVhsv(266, 74%, 69%)
CMYKcmyk(41.7%, 73.7%, 0%, 31.4%)
CIE-LABlab(33.72, 50.96, -59.08)
CIE-LCHlch(33.72, 78.02, 310.78°)
OKLaboklab(45.14% 0.0898 -0.1689)
OKLCHoklch(45.14% 0.191 298)
XYZxyz(14.1924, 7.8737, 41.3212)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EAF #77AF2E
analogous
#2E36AF #662EAF #A62EAF
triadic
#662EAF #AF662E #2EAF66
tetradic
#662EAF #AF2E36 #77AF2E #2EAFA6
square
#662EAF #AF2E36 #77AF2E #2EAFA6
split-complementary
#662EAF #AFA62E #36AF2E
monochromatic
#2E154E #4A217F #662EAF #844BD0 #A57BDC

Accessibility & contrast

On white

8.16
#662EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#662EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EAF
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EAF#FFFFFF#000000##FFFFFF
##662EAF1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#544F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662eaf;
/* rgb */ color: rgb(102, 46, 175);
/* oklch */ color: oklch(45.1% 0.191 298.0);
Tailwind
colors: {
  custom: {
    50: '#986cc8',
    500: '#662eaf',
    950: '#000000',
  },
}
SCSS
$custom: #662eaf;
$custom-light: #986cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#662eaf",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 266.047,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45143,
    "c": 0.19132,
    "h": 298
  },
  "luminance": 0.07874
}

Semantic roles & 50–950 ramp

primary
#662EAF
secondary
#A2C574
accent
#E2469E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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