#642FA5#642FA5

#642FA5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.179 H 299.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#642FA5
RGBrgb(100, 47, 165)
HSLhsl(267, 56%, 42%)
HSVhsv(267, 72%, 65%)
CMYKcmyk(39.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(32.83, 47.55, -54.54)
CIE-LCHlch(32.83, 72.36, 311.08°)
OKLaboklab(44.21% 0.088 -0.1557)
OKLCHoklch(44.21% 0.179 299.5)
XYZxyz(13.0619, 7.4588, 36.3415)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA5 #70A52F
analogous
#2F35A5 #642FA5 #9F2FA5
triadic
#642FA5 #A5642F #2FA564
tetradic
#642FA5 #A52F35 #70A52F #2FA59F
square
#642FA5 #A52F35 #70A52F #2FA59F
split-complementary
#642FA5 #A59F2F #35A52F
monochromatic
#2A1446 #472175 #642FA5 #8247CB #A276D8

Accessibility & contrast

On white

8.43
#642FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#642FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA5
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA5#FFFFFF#000000##FFFFFF
##642FA51.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#554C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #642fa5;
/* rgb */ color: rgb(100, 47, 165);
/* oklch */ color: oklch(44.2% 0.179 299.5);
Tailwind
colors: {
  custom: {
    50: '#966cc1',
    500: '#642fa5',
    950: '#000000',
  },
}
SCSS
$custom: #642fa5;
$custom-light: #966cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa5",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 266.949,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44205,
    "c": 0.17881,
    "h": 299.5
  },
  "luminance": 0.07459
}

Semantic roles & 50–950 ramp

primary
#642FA5
secondary
#9CC070
accent
#DF499C
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #642FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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