#652E98#652E98

#652E98 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.166 H 304.0°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#652E98
RGBrgb(101, 46, 152)
HSLhsl(271, 54%, 39%)
HSVhsv(271, 70%, 60%)
CMYKcmyk(33.6%, 69.7%, 0%, 40.4%)
CIE-LABlab(31.78, 44.96, -48.36)
CIE-LCHlch(31.78, 66.03, 312.91°)
OKLaboklab(43.17% 0.0926 -0.1374)
OKLCHoklch(43.17% 0.166 304)
XYZxyz(12.0100, 6.9877, 30.4157)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#652E98 #61982E
analogous
#302E98 #652E98 #982E96
triadic
#652E98 #98652E #2E9865
tetradic
#652E98 #98302E #61982E #2E9698
square
#652E98 #98302E #61982E #2E9698
split-complementary
#652E98 #96982E #2E9830
monochromatic
#27123A #462069 #652E98 #843EC5 #A26DD3

Accessibility & contrast

On white

8.76
#652E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#652E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #652E98
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##652E98#FFFFFF#000000##FFFFFF
##652E981.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#5B465F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #652e98;
/* rgb */ color: rgb(101, 46, 152);
/* oklch */ color: oklch(43.2% 0.166 304.0);
Tailwind
colors: {
  custom: {
    50: '#956bb7',
    500: '#652e98',
    950: '#000000',
  },
}
SCSS
$custom: #652e98;
$custom-light: #956bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#652e98",
  "rgb": {
    "r": 101,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 271.132,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4317,
    "c": 0.16573,
    "h": 304
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#652E98
secondary
#8FBA68
accent
#DD4B91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #652E98

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

Preview Lab → · Contrast checker → · Palette generator →

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