#642F95#642F95

#642F95 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.161 H 304.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#642F95
RGBrgb(100, 47, 149)
HSLhsl(271, 52%, 38%)
HSVhsv(271, 68%, 58%)
CMYKcmyk(32.9%, 68.5%, 0%, 41.6%)
CIE-LABlab(31.61, 43.49, -46.81)
CIE-LCHlch(31.61, 63.90, 312.89°)
OKLaboklab(42.95% 0.0904 -0.1329)
OKLCHoklch(42.95% 0.161 304.2)
XYZxyz(11.6956, 6.9123, 29.1460)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F95 #60952F
analogous
#312F95 #642F95 #952F93
triadic
#642F95 #95642F #2F9564
tetradic
#642F95 #95312F #60952F #2F9395
square
#642F95 #95312F #60952F #2F9395
split-complementary
#642F95 #93952F #2F9531
monochromatic
#261238 #452066 #642F95 #833FC2 #A16DD1

Accessibility & contrast

On white

8.81
#642F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#642F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F95
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F95#FFFFFF#000000##FFFFFF
##642F951.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#094A93
Tritanopia (blue-blind)
#5B465E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642f95;
/* rgb */ color: rgb(100, 47, 149);
/* oklch */ color: oklch(42.9% 0.161 304.2);
Tailwind
colors: {
  custom: {
    50: '#946bb5',
    500: '#642f95',
    950: '#000000',
  },
}
SCSS
$custom: #642f95;
$custom-light: #946bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#642f95",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 271.176,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42947,
    "c": 0.16078,
    "h": 304.2
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#642F95
secondary
#8EB867
accent
#DB4C91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F95

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

Preview Lab → · Contrast checker → · Palette generator →

#642F95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva