#642F91#642F91

#642F91 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.156 H 305.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#642F91
RGBrgb(100, 47, 145)
HSLhsl(272, 51%, 38%)
HSVhsv(272, 68%, 57%)
CMYKcmyk(31%, 67.6%, 0%, 43.1%)
CIE-LABlab(31.32, 42.50, -44.83)
CIE-LCHlch(31.32, 61.77, 313.47°)
OKLaboklab(42.65% 0.0909 -0.1271)
OKLCHoklch(42.65% 0.156 305.6)
XYZxyz(11.3818, 6.7868, 27.4929)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F91 #5C912F
analogous
#332F91 #642F91 #912F8D
triadic
#642F91 #91642F #2F9164
tetradic
#642F91 #91332F #5C912F #2F8D91
square
#642F91 #91332F #5C912F #2F8D91
split-complementary
#642F91 #8D912F #2F9133
monochromatic
#241135 #442063 #642F91 #843EBF #A16BCF

Accessibility & contrast

On white

8.91
#642F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#642F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F91
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F91#FFFFFF#000000##FFFFFF
##642F911.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#134A8F
Tritanopia (blue-blind)
#5C445C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642f91;
/* rgb */ color: rgb(100, 47, 145);
/* oklch */ color: oklch(42.6% 0.156 305.6);
Tailwind
colors: {
  custom: {
    50: '#946bb2',
    500: '#642f91',
    950: '#000000',
  },
}
SCSS
$custom: #642f91;
$custom-light: #946bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#642f91",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 272.449,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42647,
    "c": 0.15624,
    "h": 305.6
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#642F91
secondary
#8BB665
accent
#DB4D8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F91

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

Preview Lab → · Contrast checker → · Palette generator →

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