#642BB2#642BB2

#642BB2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.198 H 296.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#642BB2
RGBrgb(100, 43, 178)
HSLhsl(265, 61%, 43%)
HSVhsv(265, 76%, 70%)
CMYKcmyk(43.8%, 75.8%, 0%, 30.2%)
CIE-LABlab(33.25, 52.75, -61.65)
CIE-LCHlch(33.25, 81.14, 310.55°)
OKLaboklab(44.83% 0.0889 -0.1765)
OKLCHoklch(44.83% 0.198 296.7)
XYZxyz(14.1532, 7.6511, 42.8420)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB2 #79B22B
analogous
#2B36B2 #642BB2 #A72BB2
triadic
#642BB2 #B2642B #2BB264
tetradic
#642BB2 #B22B36 #79B22B #2BB2A7
square
#642BB2 #B22B36 #79B22B #2BB2A7
split-complementary
#642BB2 #B2A72B #36B22B
monochromatic
#2D134F #481F81 #642BB2 #8248D3 #A479DF

Accessibility & contrast

On white

8.30
#642BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#642BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BB2
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB2#FFFFFF#000000##FFFFFF
##642BB21.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642bb2;
/* rgb */ color: rgb(100, 43, 178);
/* oklch */ color: oklch(44.8% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#976aca',
    500: '#642bb2',
    950: '#000000',
  },
}
SCSS
$custom: #642bb2;
$custom-light: #976aca;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb2",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 265.333,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44833,
    "c": 0.1976,
    "h": 296.7
  },
  "luminance": 0.07651
}

Semantic roles & 50–950 ramp

primary
#642BB2
secondary
#A3C772
accent
#E444A0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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