#642DB0#642DB0

#642DB0 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.193 H 296.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#642DB0
RGBrgb(100, 45, 176)
HSLhsl(265, 59%, 43%)
HSVhsv(265, 74%, 69%)
CMYKcmyk(43.2%, 74.4%, 0%, 31%)
CIE-LABlab(33.39, 51.33, -60.22)
CIE-LCHlch(33.39, 79.13, 310.45°)
OKLaboklab(44.89% 0.0876 -0.1723)
OKLCHoklch(44.89% 0.193 296.9)
XYZxyz(14.0283, 7.7204, 41.8170)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB0 #79B02D
analogous
#2D37B0 #642DB0 #A52DB0
triadic
#642DB0 #B0642D #2DB064
tetradic
#642DB0 #B02D37 #79B02D #2DB0A5
square
#642DB0 #B02D37 #79B02D #2DB0A5
split-complementary
#642DB0 #B0A52D #37B02D
monochromatic
#2D144F #48217F #642DB0 #824AD1 #A47ADD

Accessibility & contrast

On white

8.25
#642DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#642DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB0
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB0#FFFFFF#000000##FFFFFF
##642DB01.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#504F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642db0;
/* rgb */ color: rgb(100, 45, 176);
/* oklch */ color: oklch(44.9% 0.193 296.9);
Tailwind
colors: {
  custom: {
    50: '#976bc9',
    500: '#642db0',
    950: '#000000',
  },
}
SCSS
$custom: #642db0;
$custom-light: #976bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642db0",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 265.191,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44885,
    "c": 0.19329,
    "h": 296.9
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#642DB0
secondary
#A3C573
accent
#E245A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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