#642F92#642F92

#642F92 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.157 H 305.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#642F92
RGBrgb(100, 47, 146)
HSLhsl(272, 51%, 38%)
HSVhsv(272, 68%, 57%)
CMYKcmyk(31.5%, 67.8%, 0%, 42.7%)
CIE-LABlab(31.39, 42.75, -45.33)
CIE-LCHlch(31.39, 62.30, 313.32°)
OKLaboklab(42.72% 0.0908 -0.1286)
OKLCHoklch(42.72% 0.157 305.2)
XYZxyz(11.4592, 6.8178, 27.9008)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F92 #5D922F
analogous
#322F92 #642F92 #922F8E
triadic
#642F92 #92642F #2F9264
tetradic
#642F92 #92322F #5D922F #2F8E92
square
#642F92 #92322F #5D922F #2F8E92
split-complementary
#642F92 #8E922F #2F9232
monochromatic
#251135 #442064 #642F92 #843EC0 #A16CD0

Accessibility & contrast

On white

8.88
#642F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642F92
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F92#FFFFFF#000000##FFFFFF
##642F921.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#114A90
Tritanopia (blue-blind)
#5C455C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #642f92;
/* rgb */ color: rgb(100, 47, 146);
/* oklch */ color: oklch(42.7% 0.157 305.2);
Tailwind
colors: {
  custom: {
    50: '#946bb3',
    500: '#642f92',
    950: '#000000',
  },
}
SCSS
$custom: #642f92;
$custom-light: #946bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#642f92",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 272.121,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42722,
    "c": 0.15738,
    "h": 305.2
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #642F92

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

Preview Lab → · Contrast checker → · Palette generator →

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