#642FB4#642FB4

#642FB4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.195 H 295.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#642FB4
RGBrgb(100, 47, 180)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 71%)
CMYKcmyk(44.4%, 73.9%, 0%, 29.4%)
CIE-LABlab(34.06, 51.44, -61.51)
CIE-LCHlch(34.06, 80.18, 309.91°)
OKLaboklab(45.46% 0.0849 -0.1761)
OKLCHoklch(45.46% 0.195 295.7)
XYZxyz(14.5081, 8.0373, 43.9581)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB4 #7FB42F
analogous
#2F3DB4 #642FB4 #A72FB4
triadic
#642FB4 #B4642F #2FB464
tetradic
#642FB4 #B42F3D #7FB42F #2FB4A7
square
#642FB4 #B42F3D #7FB42F #2FB4A7
split-complementary
#642FB4 #B4A72F #3DB42F
monochromatic
#2E1653 #492283 #642FB4 #834FD1 #A580DE

Accessibility & contrast

On white

8.05
#642FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#642FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB4
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB4#FFFFFF#000000##FFFFFF
##642FB41.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#4E526F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642fb4;
/* rgb */ color: rgb(100, 47, 180);
/* oklch */ color: oklch(45.5% 0.195 295.7);
Tailwind
colors: {
  custom: {
    50: '#976dcb',
    500: '#642fb4',
    950: '#000000',
  },
}
SCSS
$custom: #642fb4;
$custom-light: #976dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb4",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 263.91,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4546,
    "c": 0.19548,
    "h": 295.7
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #642FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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