#642BB4#642BB4

#642BB4 is a mid, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.200 H 296.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#642BB4
RGBrgb(100, 43, 180)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(44.4%, 76.1%, 0%, 29.4%)
CIE-LABlab(33.42, 53.26, -62.56)
CIE-LCHlch(33.42, 82.16, 310.41°)
OKLaboklab(45.01% 0.0883 -0.1792)
OKLCHoklch(45.01% 0.2 296.2)
XYZxyz(14.3554, 7.7320, 43.9073)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB4 #7BB42B
analogous
#2B36B4 #642BB4 #A82BB4
triadic
#642BB4 #B4642B #2BB464
tetradic
#642BB4 #B42B36 #7BB42B #2BB4A8
square
#642BB4 #B42B36 #7BB42B #2BB4A8
split-complementary
#642BB4 #B4A82B #36B42B
monochromatic
#2D1351 #491F83 #642BB4 #8249D3 #A47ADF

Accessibility & contrast

On white

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

On black

2.55
#642BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##642BB4#FFFFFF#000000##FFFFFF
##642BB41.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#4E506E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642bb4;
/* rgb */ color: rgb(100, 43, 180);
/* oklch */ color: oklch(45.0% 0.200 296.2);
Tailwind
colors: {
  custom: {
    50: '#986bcc',
    500: '#642bb4',
    950: '#000000',
  },
}
SCSS
$custom: #642bb4;
$custom-light: #986bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb4",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 264.964,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45008,
    "c": 0.19975,
    "h": 296.2
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#642BB4
secondary
#A4C773
accent
#E543A1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #642BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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