#642FB6#642FB6

#642FB6 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.198 H 295.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#642FB6
RGBrgb(100, 47, 182)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 71%)
CMYKcmyk(45.1%, 74.2%, 0%, 28.6%)
CIE-LABlab(34.23, 51.96, -62.41)
CIE-LCHlch(34.23, 81.21, 309.78°)
OKLaboklab(45.63% 0.0844 -0.1788)
OKLCHoklch(45.63% 0.198 295.3)
XYZxyz(14.7133, 8.1194, 45.0389)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB6 #81B62F
analogous
#2F3DB6 #642FB6 #A82FB6
triadic
#642FB6 #B6642F #2FB664
tetradic
#642FB6 #B62F3D #81B62F #2FB6A8
square
#642FB6 #B62F3D #81B62F #2FB6A8
split-complementary
#642FB6 #B6A82F #3DB62F
monochromatic
#2F1655 #492285 #642FB6 #8350D2 #A681DE

Accessibility & contrast

On white

8.00
#642FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#642FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB6
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB6#FFFFFF#000000##FFFFFF
##642FB61.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#4D5370
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642fb6;
/* rgb */ color: rgb(100, 47, 182);
/* oklch */ color: oklch(45.6% 0.198 295.3);
Tailwind
colors: {
  custom: {
    50: '#986dcd',
    500: '#642fb6',
    950: '#000000',
  },
}
SCSS
$custom: #642fb6;
$custom-light: #986dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb6",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 263.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.19769,
    "h": 295.3
  },
  "luminance": 0.0812
}

Semantic roles & 50–950 ramp

primary
#642FB6
secondary
#A9C779
accent
#E246A5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #642FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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