#642B92#642B92

#642B92 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.163 H 305.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#642B92
RGBrgb(100, 43, 146)
HSLhsl(273, 54%, 37%)
HSVhsv(273, 71%, 57%)
CMYKcmyk(31.5%, 70.5%, 0%, 42.7%)
CIE-LABlab(30.67, 44.74, -46.49)
CIE-LCHlch(30.67, 64.52, 313.90°)
OKLaboklab(42.21% 0.0953 -0.132)
OKLCHoklch(42.21% 0.163 305.8)
XYZxyz(11.3066, 6.5125, 27.8499)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B92 #59922B
analogous
#312B92 #642B92 #922B8D
triadic
#642B92 #92642B #2B9264
tetradic
#642B92 #92312B #59922B #2B8D92
square
#642B92 #92312B #59922B #2B8D92
split-complementary
#642B92 #8D922B #2B9231
monochromatic
#230F33 #441D63 #642B92 #8439C1 #A166D2

Accessibility & contrast

On white

9.12
#642B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B92
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B92#FFFFFF#000000##FFFFFF
##642B921.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#074890
Tritanopia (blue-blind)
#5C425B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642b92;
/* rgb */ color: rgb(100, 43, 146);
/* oklch */ color: oklch(42.2% 0.163 305.8);
Tailwind
colors: {
  custom: {
    50: '#9469b3',
    500: '#642b92',
    950: '#000000',
  },
}
SCSS
$custom: #642b92;
$custom-light: #9469b3;
$custom-dark: #000000;
JSON
{
  "hex": "#642b92",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 146
  },
  "hsl": {
    "h": 273.204,
    "s": 54.497,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.1628,
    "h": 305.8
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#642B92
secondary
#88B861
accent
#DE4A8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642B92

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

Preview Lab → · Contrast checker → · Palette generator →

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