#642AB5#642AB5

#642AB5 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.202 H 296.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#642AB5
RGBrgb(100, 42, 181)
HSLhsl(265, 62%, 44%)
HSVhsv(265, 77%, 71%)
CMYKcmyk(44.8%, 76.8%, 0%, 29%)
CIE-LABlab(33.35, 53.96, -63.26)
CIE-LCHlch(33.35, 83.14, 310.46°)
OKLaboklab(44.99% 0.0889 -0.1812)
OKLCHoklch(44.99% 0.202 296.1)
XYZxyz(14.4218, 7.7011, 44.4337)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AB5 #7BB52A
analogous
#2A35B5 #642AB5 #A92AB5
triadic
#642AB5 #B5642A #2AB564
tetradic
#642AB5 #B52A35 #7BB52A #2AB5A9
square
#642AB5 #B52A35 #7BB52A #2AB5A9
split-complementary
#642AB5 #B5A92A #35B52A
monochromatic
#2D1352 #491E83 #642AB5 #8248D4 #A479E0

Accessibility & contrast

On white

8.27
#642AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642AB5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AB5#FFFFFF#000000##FFFFFF
##642AB51.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#4E506E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642ab5;
/* rgb */ color: rgb(100, 42, 181);
/* oklch */ color: oklch(45.0% 0.202 296.1);
Tailwind
colors: {
  custom: {
    50: '#986acc',
    500: '#642ab5',
    950: '#000000',
  },
}
SCSS
$custom: #642ab5;
$custom-light: #986acc;
$custom-dark: #000000;
JSON
{
  "hex": "#642ab5",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 265.036,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.20185,
    "h": 296.1
  },
  "luminance": 0.07701
}

Semantic roles & 50–950 ramp

primary
#642AB5
secondary
#A4C873
accent
#E542A1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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