#652298#652298

#652298 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.180 H 305.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#652298
RGBrgb(101, 34, 152)
HSLhsl(274, 63%, 36%)
HSVhsv(274, 78%, 60%)
CMYKcmyk(33.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(29.86, 50.39, -51.48)
CIE-LCHlch(29.86, 72.04, 314.39°)
OKLaboklab(41.81% 0.1047 -0.1465)
OKLCHoklch(41.81% 0.18 305.6)
XYZxyz(11.6051, 6.1778, 30.2807)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#652298 #559822
analogous
#2A2298 #652298 #982290
triadic
#652298 #986522 #229865
tetradic
#652298 #982A22 #559822 #229098
square
#652298 #982A22 #559822 #229098
split-complementary
#652298 #909822 #22982A
monochromatic
#230C34 #441766 #652298 #862DCA #A35ADA

Accessibility & contrast

On white

9.39
#652298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#652298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #652298
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##652298#FFFFFF#000000##FFFFFF
##6522981.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#5C405C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #652298;
/* rgb */ color: rgb(101, 34, 152);
/* oklch */ color: oklch(41.8% 0.180 305.6);
Tailwind
colors: {
  custom: {
    50: '#9665b7',
    500: '#652298',
    950: '#000000',
  },
}
SCSS
$custom: #652298;
$custom-light: #9665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#652298",
  "rgb": {
    "r": 101,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 274.068,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41807,
    "c": 0.18011,
    "h": 305.6
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#652298
secondary
#84BE57
accent
#E64189
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #652298

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

Preview Lab → · Contrast checker → · Palette generator →

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