#642AB3#642AB3

#642AB3 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.200 H 296.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#642AB3
RGBrgb(100, 42, 179)
HSLhsl(265, 62%, 43%)
HSVhsv(265, 77%, 70%)
CMYKcmyk(44.1%, 76.5%, 0%, 29.8%)
CIE-LABlab(33.18, 53.45, -62.35)
CIE-LCHlch(33.18, 82.13, 310.60°)
OKLaboklab(44.81% 0.0894 -0.1786)
OKLCHoklch(44.81% 0.2 296.6)
XYZxyz(14.2180, 7.6196, 43.3607)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642AB3 #79B32A
analogous
#2A35B3 #642AB3 #A82AB3
triadic
#642AB3 #B3642A #2AB364
tetradic
#642AB3 #B32A35 #79B32A #2AB3A8
square
#642AB3 #B32A35 #79B32A #2AB3A8
split-complementary
#642AB3 #B3A82A #35B32A
monochromatic
#2D1350 #481E81 #642AB3 #8246D4 #A478DF

Accessibility & contrast

On white

8.32
#642AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#642AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642AB3
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642AB3#FFFFFF#000000##FFFFFF
##642AB31.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#4F4F6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642ab3;
/* rgb */ color: rgb(100, 42, 179);
/* oklch */ color: oklch(44.8% 0.200 296.6);
Tailwind
colors: {
  custom: {
    50: '#986acb',
    500: '#642ab3',
    950: '#000000',
  },
}
SCSS
$custom: #642ab3;
$custom-light: #986acb;
$custom-dark: #000000;
JSON
{
  "hex": "#642ab3",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 265.401,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44813,
    "c": 0.19971,
    "h": 296.6
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#642AB3
secondary
#A3C772
accent
#E543A0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #642AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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