#662DAF#662DAF

#662DAF is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.192 H 298.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#662DAF
RGBrgb(102, 45, 175)
HSLhsl(266, 59%, 43%)
HSVhsv(266, 74%, 69%)
CMYKcmyk(41.7%, 74.3%, 0%, 31.4%)
CIE-LABlab(33.56, 51.42, -59.34)
CIE-LCHlch(33.56, 78.52, 310.91°)
OKLaboklab(45.03% 0.0908 -0.1697)
OKLCHoklch(45.03% 0.192 298.1)
XYZxyz(14.1537, 7.7965, 41.3083)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662DAF #76AF2D
analogous
#2D35AF #662DAF #A72DAF
triadic
#662DAF #AF662D #2DAF66
tetradic
#662DAF #AF2D35 #76AF2D #2DAFA7
square
#662DAF #AF2D35 #76AF2D #2DAFA7
split-complementary
#662DAF #AFA72D #35AF2D
monochromatic
#2D144E #4A207E #662DAF #8449D0 #A57ADD

Accessibility & contrast

On white

8.21
#662DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#662DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662DAF
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662DAF#FFFFFF#000000##FFFFFF
##662DAF1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#544F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662daf;
/* rgb */ color: rgb(102, 45, 175);
/* oklch */ color: oklch(45.0% 0.192 298.1);
Tailwind
colors: {
  custom: {
    50: '#986cc8',
    500: '#662daf',
    950: '#000000',
  },
}
SCSS
$custom: #662daf;
$custom-light: #986cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#662daf",
  "rgb": {
    "r": 102,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 266.308,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45028,
    "c": 0.19243,
    "h": 298.1
  },
  "luminance": 0.07797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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