#642FB1#642FB1

#642FB1 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.192 H 296.4°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#642FB1
RGBrgb(100, 47, 177)
HSLhsl(264, 58%, 44%)
HSVhsv(264, 73%, 69%)
CMYKcmyk(43.5%, 73.4%, 0%, 30.6%)
CIE-LABlab(33.81, 50.66, -60.13)
CIE-LCHlch(33.81, 78.63, 310.11°)
OKLaboklab(45.2% 0.0855 -0.1721)
OKLCHoklch(45.2% 0.192 296.4)
XYZxyz(14.2058, 7.9164, 42.3660)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB1 #7CB12F
analogous
#2F3BB1 #642FB1 #A52FB1
triadic
#642FB1 #B1642F #2FB164
tetradic
#642FB1 #B12F3B #7CB12F #2FB1A5
square
#642FB1 #B12F3B #7CB12F #2FB1A5
split-complementary
#642FB1 #B1A52F #3BB12F
monochromatic
#2D1550 #492281 #642FB1 #834DD0 #A47EDD

Accessibility & contrast

On white

8.13
#642FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#642FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB1
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB1#FFFFFF#000000##FFFFFF
##642FB11.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#50516D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642fb1;
/* rgb */ color: rgb(100, 47, 177);
/* oklch */ color: oklch(45.2% 0.192 296.4);
Tailwind
colors: {
  custom: {
    50: '#976dc9',
    500: '#642fb1',
    950: '#000000',
  },
}
SCSS
$custom: #642fb1;
$custom-light: #976dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb1",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 264.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45203,
    "c": 0.19217,
    "h": 296.4
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#642FB1
secondary
#A5C576
accent
#E147A2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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