#662195#662195

#662195 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.178 H 307.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#662195
RGBrgb(102, 33, 149)
HSLhsl(276, 64%, 36%)
HSVhsv(276, 78%, 58%)
CMYKcmyk(31.5%, 77.9%, 0%, 41.6%)
CIE-LABlab(29.62, 50.28, -50.02)
CIE-LCHlch(29.62, 70.93, 315.15°)
OKLaboklab(41.6% 0.1078 -0.1422)
OKLCHoklch(41.6% 0.178 307.2)
XYZxyz(11.4470, 6.0826, 28.9990)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662195 #509521
analogous
#2C2195 #662195 #95218A
triadic
#662195 #956621 #219566
tetradic
#662195 #952C21 #509521 #218A95
square
#662195 #952C21 #509521 #218A95
split-complementary
#662195 #8A9521 #21952C
monochromatic
#210B31 #441663 #662195 #882CC7 #A557DA

Accessibility & contrast

On white

9.47
#662195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#662195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662195
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662195#FFFFFF#000000##FFFFFF
##6621951.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#5E3E5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662195;
/* rgb */ color: rgb(102, 33, 149);
/* oklch */ color: oklch(41.6% 0.178 307.2);
Tailwind
colors: {
  custom: {
    50: '#9664b5',
    500: '#662195',
    950: '#000000',
  },
}
SCSS
$custom: #662195;
$custom-light: #9664b5;
$custom-dark: #000000;
JSON
{
  "hex": "#662195",
  "rgb": {
    "r": 102,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 275.69,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41596,
    "c": 0.17843,
    "h": 307.2
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#662195
secondary
#7FBE54
accent
#E74184
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662195

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

Preview Lab → · Contrast checker → · Palette generator →

#662195 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva