#642DB8#642DB8

#642DB8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.202 H 295.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#642DB8
RGBrgb(100, 45, 184)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 76%, 72%)
CMYKcmyk(45.7%, 75.5%, 0%, 27.8%)
CIE-LABlab(34.08, 53.40, -63.85)
CIE-LCHlch(34.08, 83.23, 309.91°)
OKLaboklab(45.58% 0.0856 -0.183)
OKLCHoklch(45.58% 0.202 295.1)
XYZxyz(14.8433, 8.0464, 46.1092)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642DB8 #81B82D
analogous
#2D3BB8 #642DB8 #AA2DB8
triadic
#642DB8 #B8642D #2DB864
tetradic
#642DB8 #B82D3B #81B82D #2DB8AA
square
#642DB8 #B82D3B #81B82D #2DB8AA
split-complementary
#642DB8 #B8AA2D #3BB82D
monochromatic
#2F1556 #492187 #642DB8 #834ED4 #A680E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642DB8#FFFFFF#000000##FFFFFF
##642DB81.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)
#0051BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#4C5271
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642db8;
/* rgb */ color: rgb(100, 45, 184);
/* oklch */ color: oklch(45.6% 0.202 295.1);
Tailwind
colors: {
  custom: {
    50: '#986cce',
    500: '#642db8',
    950: '#000000',
  },
}
SCSS
$custom: #642db8;
$custom-light: #986cce;
$custom-dark: #000000;
JSON
{
  "hex": "#642db8",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 263.741,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.20201,
    "h": 295.1
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#642DB8
secondary
#A9C978
accent
#E444A5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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