#642B95#642B95

#642B95 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.166 H 304.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#642B95
RGBrgb(100, 43, 149)
HSLhsl(272, 55%, 38%)
HSVhsv(272, 71%, 58%)
CMYKcmyk(32.9%, 71.1%, 0%, 41.6%)
CIE-LABlab(30.90, 45.47, -47.97)
CIE-LCHlch(30.90, 66.09, 313.47°)
OKLaboklab(42.44% 0.0949 -0.1363)
OKLCHoklch(42.44% 0.166 304.8)
XYZxyz(11.5430, 6.6071, 29.0951)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642B95 #5C952B
analogous
#2F2B95 #642B95 #952B91
triadic
#642B95 #95642B #2B9564
tetradic
#642B95 #952F2B #5C952B #2B9195
square
#642B95 #952F2B #5C952B #2B9195
split-complementary
#642B95 #91952B #2B952F
monochromatic
#241036 #441D66 #642B95 #8439C4 #A167D3

Accessibility & contrast

On white

9.05
#642B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#642B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642B95
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642B95#FFFFFF#000000##FFFFFF
##642B951.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004993
Tritanopia (blue-blind)
#5B435D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #642b95;
/* rgb */ color: rgb(100, 43, 149);
/* oklch */ color: oklch(42.4% 0.166 304.8);
Tailwind
colors: {
  custom: {
    50: '#9569b5',
    500: '#642b95',
    950: '#000000',
  },
}
SCSS
$custom: #642b95;
$custom-light: #9569b5;
$custom-dark: #000000;
JSON
{
  "hex": "#642b95",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 272.264,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42439,
    "c": 0.16608,
    "h": 304.8
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#642B95
secondary
#8BBA62
accent
#DF498E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #642B95

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

Preview Lab → · Contrast checker → · Palette generator →

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