#642F8A#642F8A

#642F8A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.148 H 308.1°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#642F8A
RGBrgb(100, 47, 138)
HSLhsl(275, 49%, 36%)
HSVhsv(275, 66%, 54%)
CMYKcmyk(27.5%, 65.9%, 0%, 45.9%)
CIE-LABlab(30.83, 40.78, -41.30)
CIE-LCHlch(30.83, 58.05, 314.63°)
OKLaboklab(42.14% 0.0914 -0.1167)
OKLCHoklch(42.14% 0.148 308.1)
XYZxyz(10.8586, 6.5775, 24.7374)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F8A #558A2F
analogous
#372F8A #642F8A #8A2F83
triadic
#642F8A #8A642F #2F8A64
tetradic
#642F8A #8A372F #558A2F #2F838A
square
#642F8A #8A372F #558A2F #2F838A
split-complementary
#642F8A #838A2F #2F8A37
monochromatic
#22102F #431F5C #642F8A #853FB8 #A268CC

Accessibility & contrast

On white

9.07
#642F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F8A
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F8A#FFFFFF#000000##FFFFFF
##642F8A1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#1E4988
Tritanopia (blue-blind)
#5E4258
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642f8a;
/* rgb */ color: rgb(100, 47, 138);
/* oklch */ color: oklch(42.1% 0.148 308.1);
Tailwind
colors: {
  custom: {
    50: '#936bad',
    500: '#642f8a',
    950: '#000000',
  },
}
SCSS
$custom: #642f8a;
$custom-light: #936bad;
$custom-dark: #000000;
JSON
{
  "hex": "#642f8a",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 274.945,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.1483,
    "h": 308.1
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#642F8A
secondary
#84B362
accent
#D94F89
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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