#642DB2#642DB2

#642DB2 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.195 H 296.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#642DB2
RGBrgb(100, 45, 178)
HSLhsl(265, 60%, 44%)
HSVhsv(265, 75%, 70%)
CMYKcmyk(43.8%, 74.7%, 0%, 30.2%)
CIE-LABlab(33.56, 51.85, -61.13)
CIE-LCHlch(33.56, 80.16, 310.30°)
OKLaboklab(45.06% 0.0871 -0.175)
OKLCHoklch(45.06% 0.195 296.5)
XYZxyz(14.2277, 7.8001, 42.8668)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB2 #7BB22D
analogous
#2D38B2 #642DB2 #A62DB2
triadic
#642DB2 #B2642D #2DB264
tetradic
#642DB2 #B22D38 #7BB22D #2DB2A6
square
#642DB2 #B22D38 #7BB22D #2DB2A6
split-complementary
#642DB2 #B2A62D #38B22D
monochromatic
#2D1450 #492181 #642DB2 #824BD1 #A47CDE

Accessibility & contrast

On white

8.20
#642DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#642DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB2
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB2#FFFFFF#000000##FFFFFF
##642DB21.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#4F506D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642db2;
/* rgb */ color: rgb(100, 45, 178);
/* oklch */ color: oklch(45.1% 0.195 296.5);
Tailwind
colors: {
  custom: {
    50: '#976cca',
    500: '#642db2',
    950: '#000000',
  },
}
SCSS
$custom: #642db2;
$custom-light: #976cca;
$custom-dark: #000000;
JSON
{
  "hex": "#642db2",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 264.812,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45057,
    "c": 0.19547,
    "h": 296.5
  },
  "luminance": 0.078
}

Semantic roles & 50–950 ramp

primary
#642DB2
secondary
#A4C675
accent
#E345A2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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