#642F8D#642F8D

#642F8D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.152 H 307.0°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#642F8D
RGBrgb(100, 47, 141)
HSLhsl(274, 50%, 37%)
HSVhsv(274, 67%, 55%)
CMYKcmyk(29.1%, 66.7%, 0%, 44.7%)
CIE-LABlab(31.03, 41.51, -42.82)
CIE-LCHlch(31.03, 59.64, 314.11°)
OKLaboklab(42.35% 0.0912 -0.1212)
OKLCHoklch(42.35% 0.152 307)
XYZxyz(11.0787, 6.6656, 25.8971)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F8D #588D2F
analogous
#352F8D #642F8D #8D2F87
triadic
#642F8D #8D642F #2F8D64
tetradic
#642F8D #8D352F #588D2F #2F878D
square
#642F8D #8D352F #588D2F #2F878D
split-complementary
#642F8D #878D2F #2F8D35
monochromatic
#231031 #43205F #642F8D #853EBB #A269CD

Accessibility & contrast

On white

9.00
#642F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#642F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F8D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F8D#FFFFFF#000000##FFFFFF
##642F8D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#1A498B
Tritanopia (blue-blind)
#5D435A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642f8d;
/* rgb */ color: rgb(100, 47, 141);
/* oklch */ color: oklch(42.4% 0.152 307.0);
Tailwind
colors: {
  custom: {
    50: '#946baf',
    500: '#642f8d',
    950: '#000000',
  },
}
SCSS
$custom: #642f8d;
$custom-light: #946baf;
$custom-dark: #000000;
JSON
{
  "hex": "#642f8d",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 273.83,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.15171,
    "h": 307
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#642F8D
secondary
#87B464
accent
#DA4E8B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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