#642F93#642F93

#642F93 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.159 H 304.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#642F93
RGBrgb(100, 47, 147)
HSLhsl(272, 52%, 38%)
HSVhsv(272, 68%, 58%)
CMYKcmyk(32%, 68%, 0%, 42.4%)
CIE-LABlab(31.46, 42.99, -45.83)
CIE-LCHlch(31.46, 62.84, 313.17°)
OKLaboklab(42.8% 0.0907 -0.13)
OKLCHoklch(42.8% 0.159 304.9)
XYZxyz(11.5373, 6.8490, 28.3123)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F93 #5E932F
analogous
#322F93 #642F93 #932F90
triadic
#642F93 #93642F #2F9364
tetradic
#642F93 #93322F #5E932F #2F9093
square
#642F93 #93322F #5E932F #2F9093
split-complementary
#642F93 #90932F #2F9332
monochromatic
#251136 #442065 #642F93 #843EC1 #A16CD0

Accessibility & contrast

On white

8.86
#642F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#642F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F93
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F93#FFFFFF#000000##FFFFFF
##642F931.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004996
Deuteranopia (green-blind)
#0F4A91
Tritanopia (blue-blind)
#5B455D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642f93;
/* rgb */ color: rgb(100, 47, 147);
/* oklch */ color: oklch(42.8% 0.159 304.9);
Tailwind
colors: {
  custom: {
    50: '#946bb3',
    500: '#642f93',
    950: '#000000',
  },
}
SCSS
$custom: #642f93;
$custom-light: #946bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#642f93",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 271.8,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42797,
    "c": 0.15852,
    "h": 304.9
  },
  "luminance": 0.06849
}

Semantic roles & 50–950 ramp

primary
#642F93
secondary
#8CB766
accent
#DB4D90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642F93

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

Preview Lab → · Contrast checker → · Palette generator →

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