#642F9F#642F9F

#642F9F is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.172 H 301.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#642F9F
RGBrgb(100, 47, 159)
HSLhsl(268, 54%, 40%)
HSVhsv(268, 70%, 62%)
CMYKcmyk(37.1%, 70.4%, 0%, 37.6%)
CIE-LABlab(32.36, 46.02, -51.68)
CIE-LCHlch(32.36, 69.20, 311.68°)
OKLaboklab(43.72% 0.089 -0.1472)
OKLCHoklch(43.72% 0.172 301.2)
XYZxyz(12.5285, 7.2455, 33.5326)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F9F #6A9F2F
analogous
#2F329F #642F9F #9C2F9F
triadic
#642F9F #9F642F #2F9F64
tetradic
#642F9F #9F2F32 #6A9F2F #2F9F9C
square
#642F9F #9F2F32 #6A9F2F #2F9F9C
split-complementary
#642F9F #9F9C2F #329F2F
monochromatic
#291341 #462170 #642F9F #8244C8 #A273D6

Accessibility & contrast

On white

8.57
#642F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#642F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F9F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F9F#FFFFFF#000000##FFFFFF
##642F9F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#574A63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #642f9f;
/* rgb */ color: rgb(100, 47, 159);
/* oklch */ color: oklch(43.7% 0.172 301.2);
Tailwind
colors: {
  custom: {
    50: '#956cbc',
    500: '#642f9f',
    950: '#000000',
  },
}
SCSS
$custom: #642f9f;
$custom-light: #956cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#642f9f",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 268.393,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43723,
    "c": 0.17207,
    "h": 301.2
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#642F9F
secondary
#97BD6D
accent
#DE4A98
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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