#652F98#652F98

#652F98 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.164 H 303.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#652F98
RGBrgb(101, 47, 152)
HSLhsl(271, 53%, 39%)
HSVhsv(271, 69%, 60%)
CMYKcmyk(33.6%, 69.1%, 0%, 40.4%)
CIE-LABlab(31.96, 44.46, -48.07)
CIE-LCHlch(31.96, 65.48, 312.76°)
OKLaboklab(43.3% 0.0915 -0.1366)
OKLCHoklch(43.3% 0.164 303.8)
XYZxyz(12.0495, 7.0668, 30.4289)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#652F98 #62982F
analogous
#312F98 #652F98 #982F97
triadic
#652F98 #98652F #2F9865
tetradic
#652F98 #98312F #62982F #2F9798
square
#652F98 #98312F #62982F #2F9798
split-complementary
#652F98 #97982F #2F9831
monochromatic
#27123B #462169 #652F98 #8440C4 #A26FD2

Accessibility & contrast

On white

8.70
#652F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#652F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #652F98
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##652F98#FFFFFF#000000##FFFFFF
##652F981.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#024B96
Tritanopia (blue-blind)
#5B475F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #652f98;
/* rgb */ color: rgb(101, 47, 152);
/* oklch */ color: oklch(43.3% 0.164 303.8);
Tailwind
colors: {
  custom: {
    50: '#956cb7',
    500: '#652f98',
    950: '#000000',
  },
}
SCSS
$custom: #652f98;
$custom-light: #956cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#652f98",
  "rgb": {
    "r": 101,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 270.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43298,
    "c": 0.1644,
    "h": 303.8
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#652F98
secondary
#90BA69
accent
#DC4C92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #652F98

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

Preview Lab → · Contrast checker → · Palette generator →

#652F98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva