#642B91#642B91

#642B91 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.162 H 306.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#642B91
RGBrgb(100, 43, 145)
HSLhsl(274, 54%, 37%)
HSVhsv(274, 70%, 57%)
CMYKcmyk(31%, 70.3%, 0%, 43.1%)
CIE-LABlab(30.60, 44.50, -45.99)
CIE-LCHlch(30.60, 64.00, 314.05°)
OKLaboklab(42.13% 0.0955 -0.1305)
OKLCHoklch(42.13% 0.162 306.2)
XYZxyz(11.2291, 6.4815, 27.4421)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B91 #58912B
analogous
#312B91 #642B91 #912B8B
triadic
#642B91 #91642B #2B9164
tetradic
#642B91 #91312B #58912B #2B8B91
square
#642B91 #91312B #58912B #2B8B91
split-complementary
#642B91 #8B912B #2B9131
monochromatic
#230F33 #431D62 #642B91 #8539C0 #A265D1

Accessibility & contrast

On white

9.15
#642B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642B91
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B91#FFFFFF#000000##FFFFFF
##642B911.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#0A488F
Tritanopia (blue-blind)
#5C425A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642b91;
/* rgb */ color: rgb(100, 43, 145);
/* oklch */ color: oklch(42.1% 0.162 306.2);
Tailwind
colors: {
  custom: {
    50: '#9469b2',
    500: '#642b91',
    950: '#000000',
  },
}
SCSS
$custom: #642b91;
$custom-light: #9469b2;
$custom-dark: #000000;
JSON
{
  "hex": "#642b91",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 145
  },
  "hsl": {
    "h": 273.529,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42131,
    "c": 0.1617,
    "h": 306.2
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#642B91
secondary
#87B860
accent
#DE4A8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642B91

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

Preview Lab → · Contrast checker → · Palette generator →

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