#642FB2#642FB2

#642FB2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.193 H 296.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#642FB2
RGBrgb(100, 47, 178)
HSLhsl(264, 58%, 44%)
HSVhsv(264, 74%, 70%)
CMYKcmyk(43.8%, 73.6%, 0%, 30.2%)
CIE-LABlab(33.89, 50.92, -60.59)
CIE-LCHlch(33.89, 79.14, 310.04°)
OKLaboklab(45.29% 0.0853 -0.1734)
OKLCHoklch(45.29% 0.193 296.2)
XYZxyz(14.3058, 7.9564, 42.8929)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB2 #7DB22F
analogous
#2F3CB2 #642FB2 #A62FB2
triadic
#642FB2 #B2642F #2FB264
tetradic
#642FB2 #B22F3C #7DB22F #2FB2A6
square
#642FB2 #B22F3C #7DB22F #2FB2A6
split-complementary
#642FB2 #B2A62F #3CB22F
monochromatic
#2E1551 #492282 #642FB2 #834ED0 #A57EDD

Accessibility & contrast

On white

8.10
#642FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#642FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB2
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB2#FFFFFF#000000##FFFFFF
##642FB21.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#4F516E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642fb2;
/* rgb */ color: rgb(100, 47, 178);
/* oklch */ color: oklch(45.3% 0.193 296.2);
Tailwind
colors: {
  custom: {
    50: '#976dca',
    500: '#642fb2',
    950: '#000000',
  },
}
SCSS
$custom: #642fb2;
$custom-light: #976dca;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb2",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 264.275,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45288,
    "c": 0.19328,
    "h": 296.2
  },
  "luminance": 0.07957
}

Semantic roles & 50–950 ramp

primary
#642FB2
secondary
#A6C677
accent
#E146A3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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