#662AAF#662AAF

#662AAF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.196 H 298.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#662AAF
RGBrgb(102, 42, 175)
HSLhsl(267, 61%, 43%)
HSVhsv(267, 76%, 69%)
CMYKcmyk(41.7%, 76%, 0%, 31.4%)
CIE-LABlab(33.08, 52.77, -60.12)
CIE-LCHlch(33.08, 79.99, 311.27°)
OKLaboklab(44.7% 0.0934 -0.1719)
OKLCHoklch(44.7% 0.196 298.5)
XYZxyz(14.0433, 7.5756, 41.2715)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662AAF #73AF2A
analogous
#2A30AF #662AAF #A92AAF
triadic
#662AAF #AF662A #2AAF66
tetradic
#662AAF #AF2A30 #73AF2A #2AAFA9
square
#662AAF #AF2A30 #73AF2A #2AAFA9
split-complementary
#662AAF #AFA92A #30AF2A
monochromatic
#2C124C #491E7E #662AAF #8444D2 #A575DE

Accessibility & contrast

On white

8.35
#662AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#662AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662AAF
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662AAF#FFFFFF#000000##FFFFFF
##662AAF1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#544D6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662aaf;
/* rgb */ color: rgb(102, 42, 175);
/* oklch */ color: oklch(44.7% 0.196 298.5);
Tailwind
colors: {
  custom: {
    50: '#986ac8',
    500: '#662aaf',
    950: '#000000',
  },
}
SCSS
$custom: #662aaf;
$custom-light: #986ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#662aaf",
  "rgb": {
    "r": 102,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 267.068,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44695,
    "c": 0.19568,
    "h": 298.5
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#662AAF
secondary
#9FC66F
accent
#E4439C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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