#6642AF#6642AF

#6642AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.166 H 294.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#6642AF
RGBrgb(102, 66, 175)
HSLhsl(260, 45%, 47%)
HSVhsv(260, 62%, 69%)
CMYKcmyk(41.7%, 62.3%, 0%, 31.4%)
CIE-LABlab(37.51, 40.53, -52.92)
CIE-LCHlch(37.51, 66.66, 307.45°)
OKLaboklab(47.86% 0.0688 -0.1509)
OKLCHoklch(47.86% 0.166 294.5)
XYZxyz(15.1635, 9.8160, 41.6449)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642AF #8BAF42
analogous
#4254AF #6642AF #9D42AF
triadic
#6642AF #AF6642 #42AF66
tetradic
#6642AF #AF4254 #8BAF42 #42AF9D
square
#6642AF #AF4254 #8BAF42 #42AF9D
split-complementary
#6642AF #AF9D42 #54AF42
monochromatic
#322056 #4C3183 #6642AF #8768C6 #AA95D7

Accessibility & contrast

On white

7.09
#6642AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6642AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6642AF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642AF#FFFFFF#000000##FFFFFF
##6642AF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#535B72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6642af;
/* rgb */ color: rgb(102, 66, 175);
/* oklch */ color: oklch(47.9% 0.166 294.5);
Tailwind
colors: {
  custom: {
    50: '#9778c8',
    500: '#6642af',
    950: '#000000',
  },
}
SCSS
$custom: #6642af;
$custom-light: #9778c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6642af",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 259.817,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47862,
    "c": 0.1658,
    "h": 294.5
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#6642AF
secondary
#B0C28A
accent
#D553AA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6642AF

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

Preview Lab → · Contrast checker → · Palette generator →

#6642AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva