#642DB7#642DB7

#642DB7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.201 H 295.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#642DB7
RGBrgb(100, 45, 183)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 75%, 72%)
CMYKcmyk(45.4%, 75.4%, 0%, 28.2%)
CIE-LABlab(33.99, 53.14, -63.40)
CIE-LCHlch(33.99, 82.72, 309.97°)
OKLaboklab(45.49% 0.0859 -0.1816)
OKLCHoklch(45.49% 0.201 295.3)
XYZxyz(14.7389, 8.0046, 45.5591)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB7 #80B72D
analogous
#2D3BB7 #642DB7 #A92DB7
triadic
#642DB7 #B7642D #2DB764
tetradic
#642DB7 #B72D3B #80B72D #2DB7A9
square
#642DB7 #B72D3B #80B72D #2DB7A9
split-complementary
#642DB7 #B7A92D #3BB72D
monochromatic
#2E1555 #492186 #642DB7 #834ED3 #A57FDF

Accessibility & contrast

On white

8.07
#642DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#642DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642DB7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642DB7#FFFFFF#000000##FFFFFF
##642DB71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#4D5270
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642db7;
/* rgb */ color: rgb(100, 45, 183);
/* oklch */ color: oklch(45.5% 0.201 295.3);
Tailwind
colors: {
  custom: {
    50: '#986cce',
    500: '#642db7',
    950: '#000000',
  },
}
SCSS
$custom: #642db7;
$custom-light: #986cce;
$custom-dark: #000000;
JSON
{
  "hex": "#642db7",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 263.913,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.20091,
    "h": 295.3
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#642DB7
secondary
#A8C878
accent
#E444A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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