#642FB5#642FB5

#642FB5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.197 H 295.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#642FB5
RGBrgb(100, 47, 181)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 71%)
CMYKcmyk(44.8%, 74%, 0%, 29%)
CIE-LABlab(34.15, 51.70, -61.96)
CIE-LCHlch(34.15, 80.70, 309.84°)
OKLaboklab(45.55% 0.0846 -0.1774)
OKLCHoklch(45.55% 0.197 295.5)
XYZxyz(14.6103, 8.0782, 44.4966)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB5 #80B52F
analogous
#2F3DB5 #642FB5 #A72FB5
triadic
#642FB5 #B5642F #2FB564
tetradic
#642FB5 #B52F3D #80B52F #2FB5A7
square
#642FB5 #B52F3D #80B52F #2FB5A7
split-complementary
#642FB5 #B5A72F #3DB52F
monochromatic
#2E1654 #492284 #642FB5 #8350D1 #A580DE

Accessibility & contrast

On white

8.03
#642FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642FB5
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB5#FFFFFF#000000##FFFFFF
##642FB51.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#4E5270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642fb5;
/* rgb */ color: rgb(100, 47, 181);
/* oklch */ color: oklch(45.5% 0.197 295.5);
Tailwind
colors: {
  custom: {
    50: '#986dcc',
    500: '#642fb5',
    950: '#000000',
  },
}
SCSS
$custom: #642fb5;
$custom-light: #986dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb5",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 263.731,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45546,
    "c": 0.19659,
    "h": 295.5
  },
  "luminance": 0.08079
}

Semantic roles & 50–950 ramp

primary
#642FB5
secondary
#A8C779
accent
#E246A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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