#642F94#642F94

#642F94 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.160 H 304.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#642F94
RGBrgb(100, 47, 148)
HSLhsl(271, 52%, 38%)
HSVhsv(271, 68%, 58%)
CMYKcmyk(32.4%, 68.2%, 0%, 42%)
CIE-LABlab(31.53, 43.24, -46.32)
CIE-LCHlch(31.53, 63.37, 313.03°)
OKLaboklab(42.87% 0.0906 -0.1315)
OKLCHoklch(42.87% 0.16 304.6)
XYZxyz(11.6161, 6.8805, 28.7273)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F94 #5F942F
analogous
#312F94 #642F94 #942F91
triadic
#642F94 #94642F #2F9464
tetradic
#642F94 #94312F #5F942F #2F9194
square
#642F94 #94312F #5F942F #2F9194
split-complementary
#642F94 #91942F #2F9431
monochromatic
#251137 #452066 #642F94 #833EC2 #A16DD1

Accessibility & contrast

On white

8.84
#642F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#642F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F94
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F94#FFFFFF#000000##FFFFFF
##642F941.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642f94;
/* rgb */ color: rgb(100, 47, 148);
/* oklch */ color: oklch(42.9% 0.160 304.6);
Tailwind
colors: {
  custom: {
    50: '#946bb4',
    500: '#642f94',
    950: '#000000',
  },
}
SCSS
$custom: #642f94;
$custom-light: #946bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#642f94",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 271.485,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42872,
    "c": 0.15964,
    "h": 304.6
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #642F94

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

Preview Lab → · Contrast checker → · Palette generator →

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