#662485#662485

#662485 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.159 H 312.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#662485
RGBrgb(102, 36, 133)
HSLhsl(281, 57%, 33%)
HSVhsv(281, 73%, 52%)
CMYKcmyk(23.3%, 72.9%, 0%, 47.8%)
CIE-LABlab(28.85, 45.39, -41.36)
CIE-LCHlch(28.85, 61.41, 317.66°)
OKLaboklab(40.67% 0.1076 -0.1168)
OKLCHoklch(40.67% 0.159 312.7)
XYZxyz(10.3432, 5.7803, 22.7566)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662485 #438524
analogous
#362485 #662485 #852473
triadic
#662485 #856624 #248566
tetradic
#662485 #853624 #438524 #247385
square
#662485 #853624 #438524 #247385
split-complementary
#662485 #738524 #248536
monochromatic
#1C0A25 #411755 #662485 #8B31B5 #A853D0

Accessibility & contrast

On white

9.74
#662485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#662485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662485
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662485#FFFFFF#000000##FFFFFF
##6624851.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#1A4583
Tritanopia (blue-blind)
#633952
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #662485;
/* rgb */ color: rgb(102, 36, 133);
/* oklch */ color: oklch(40.7% 0.159 312.7);
Tailwind
colors: {
  custom: {
    50: '#9565a9',
    500: '#662485',
    950: '#000000',
  },
}
SCSS
$custom: #662485;
$custom-light: #9565a9;
$custom-dark: #000000;
JSON
{
  "hex": "#662485",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 133
  },
  "hsl": {
    "h": 280.825,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4067,
    "c": 0.15877,
    "h": 312.7
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#662485
secondary
#70B450
accent
#E14778
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #662485

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

Preview Lab → · Contrast checker → · Palette generator →

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