#642795#642795

#642795 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.171 H 305.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#642795
RGBrgb(100, 39, 149)
HSLhsl(273, 59%, 37%)
HSVhsv(273, 74%, 58%)
CMYKcmyk(32.9%, 73.8%, 0%, 41.6%)
CIE-LABlab(30.23, 47.34, -49.04)
CIE-LCHlch(30.23, 68.17, 313.99°)
OKLaboklab(41.97% 0.0991 -0.1394)
OKLCHoklch(41.97% 0.171 305.4)
XYZxyz(11.4047, 6.3304, 29.0490)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642795 #589527
analogous
#2D2795 #642795 #95278F
triadic
#642795 #956427 #279564
tetradic
#642795 #952D27 #589527 #278F95
square
#642795 #952D27 #589527 #278F95
split-complementary
#642795 #8F9527 #27952D
monochromatic
#230E34 #431A64 #642795 #8534C6 #A261D6

Accessibility & contrast

On white

9.27
#642795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#642795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642795
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642795#FFFFFF#000000##FFFFFF
##6427951.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#5B415C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #642795;
/* rgb */ color: rgb(100, 39, 149);
/* oklch */ color: oklch(42.0% 0.171 305.4);
Tailwind
colors: {
  custom: {
    50: '#9567b5',
    500: '#642795',
    950: '#000000',
  },
}
SCSS
$custom: #642795;
$custom-light: #9567b5;
$custom-dark: #000000;
JSON
{
  "hex": "#642795",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 273.273,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41967,
    "c": 0.17107,
    "h": 305.4
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#642795
secondary
#87BB5D
accent
#E2468B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642795

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

Preview Lab → · Contrast checker → · Palette generator →

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