#652797#652797

#652797 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.173 H 305.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#652797
RGBrgb(101, 39, 151)
HSLhsl(273, 59%, 37%)
HSVhsv(273, 74%, 59%)
CMYKcmyk(33.1%, 74.2%, 0%, 40.8%)
CIE-LABlab(30.53, 48.02, -49.78)
CIE-LCHlch(30.53, 69.17, 313.97°)
OKLaboklab(42.25% 0.1002 -0.1416)
OKLCHoklch(42.25% 0.173 305.3)
XYZxyz(11.6770, 6.4522, 29.9024)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#652797 #599727
analogous
#2D2797 #652797 #972791
triadic
#652797 #976527 #279765
tetradic
#652797 #972D27 #599727 #279197
square
#652797 #972D27 #599727 #279197
split-complementary
#652797 #919727 #27972D
monochromatic
#240E36 #441A66 #652797 #8634C8 #A262D6

Accessibility & contrast

On white

9.17
#652797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#652797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #652797
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##652797#FFFFFF#000000##FFFFFF
##6527971.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#5C425D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #652797;
/* rgb */ color: rgb(101, 39, 151);
/* oklch */ color: oklch(42.3% 0.173 305.3);
Tailwind
colors: {
  custom: {
    50: '#9667b6',
    500: '#652797',
    950: '#000000',
  },
}
SCSS
$custom: #652797;
$custom-light: #9667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#652797",
  "rgb": {
    "r": 101,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 273.214,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42254,
    "c": 0.17343,
    "h": 305.3
  },
  "luminance": 0.06452
}

Semantic roles & 50–950 ramp

primary
#652797
secondary
#88BC5E
accent
#E2468C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #652797

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

Preview Lab → · Contrast checker → · Palette generator →

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