#642F9D#642F9D

#642F9D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.170 H 301.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#642F9D
RGBrgb(100, 47, 157)
HSLhsl(269, 54%, 40%)
HSVhsv(269, 70%, 62%)
CMYKcmyk(36.3%, 70.1%, 0%, 38.4%)
CIE-LABlab(32.21, 45.51, -50.72)
CIE-LCHlch(32.21, 68.14, 311.90°)
OKLaboklab(43.57% 0.0893 -0.1444)
OKLCHoklch(43.57% 0.17 301.7)
XYZxyz(12.3564, 7.1766, 32.6260)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F9D #689D2F
analogous
#2F319D #642F9D #9B2F9D
triadic
#642F9D #9D642F #2F9D64
tetradic
#642F9D #9D2F31 #689D2F #2F9D9B
square
#642F9D #9D2F31 #689D2F #2F9D9B
split-complementary
#642F9D #9D9B2F #319D2F
monochromatic
#28133F #46216E #642F9D #8243C7 #A172D5

Accessibility & contrast

On white

8.62
#642F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#642F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F9D
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F9D#FFFFFF#000000##FFFFFF
##642F9D1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#584962
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642f9d;
/* rgb */ color: rgb(100, 47, 157);
/* oklch */ color: oklch(43.6% 0.170 301.7);
Tailwind
colors: {
  custom: {
    50: '#956cbb',
    500: '#642f9d',
    950: '#000000',
  },
}
SCSS
$custom: #642f9d;
$custom-light: #956cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#642f9d",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 268.909,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.43565,
    "c": 0.16982,
    "h": 301.7
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#642F9D
secondary
#95BC6B
accent
#DD4B97
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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