#662985#662985

#662985 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.152 H 312.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#662985
RGBrgb(102, 41, 133)
HSLhsl(280, 53%, 34%)
HSVhsv(280, 69%, 52%)
CMYKcmyk(23.3%, 69.2%, 0%, 47.8%)
CIE-LABlab(29.67, 43.08, -40.03)
CIE-LCHlch(29.67, 58.81, 317.10°)
OKLaboklab(41.26% 0.1019 -0.1129)
OKLCHoklch(41.26% 0.152 312.1)
XYZxyz(10.5053, 6.1044, 22.8106)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662985 #488529
analogous
#382985 #662985 #852976
triadic
#662985 #856629 #298566
tetradic
#662985 #853829 #488529 #297685
square
#662985 #853829 #488529 #297685
split-complementary
#662985 #768529 #298538
monochromatic
#1E0C27 #421B56 #662985 #8A37B4 #A75CCD

Accessibility & contrast

On white

9.46
#662985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662985
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662985#FFFFFF#000000##FFFFFF
##6629851.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#204783
Tritanopia (blue-blind)
#623C53
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662985;
/* rgb */ color: rgb(102, 41, 133);
/* oklch */ color: oklch(41.3% 0.152 312.1);
Tailwind
colors: {
  custom: {
    50: '#9568a9',
    500: '#662985',
    950: '#000000',
  },
}
SCSS
$custom: #662985;
$custom-light: #9568a9;
$custom-dark: #000000;
JSON
{
  "hex": "#662985",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 279.783,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41259,
    "c": 0.15209,
    "h": 312.1
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#662985
secondary
#76B258
accent
#DC4C7C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662985

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

Preview Lab → · Contrast checker → · Palette generator →

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