#642FA8#642FA8

#642FA8 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.182 H 298.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#642FA8
RGBrgb(100, 47, 168)
HSLhsl(266, 56%, 42%)
HSVhsv(266, 72%, 66%)
CMYKcmyk(40.5%, 72%, 0%, 34.1%)
CIE-LABlab(33.07, 48.32, -55.96)
CIE-LCHlch(33.07, 73.94, 310.81°)
OKLaboklab(44.45% 0.0874 -0.1598)
OKLCHoklch(44.45% 0.182 298.7)
XYZxyz(13.3381, 7.5693, 37.7965)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FA8 #73A82F
analogous
#2F37A8 #642FA8 #A12FA8
triadic
#642FA8 #A8642F #2FA864
tetradic
#642FA8 #A82F37 #73A82F #2FA8A1
square
#642FA8 #A82F37 #73A82F #2FA8A1
split-complementary
#642FA8 #A8A12F #37A82F
monochromatic
#2B1448 #482278 #642FA8 #8248CC #A378D9

Accessibility & contrast

On white

8.35
#642FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FA8
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FA8#FFFFFF#000000##FFFFFF
##642FA81.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#544D68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642fa8;
/* rgb */ color: rgb(100, 47, 168);
/* oklch */ color: oklch(44.5% 0.182 298.7);
Tailwind
colors: {
  custom: {
    50: '#966cc3',
    500: '#642fa8',
    950: '#000000',
  },
}
SCSS
$custom: #642fa8;
$custom-light: #966cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#642fa8",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 266.281,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44451,
    "c": 0.18216,
    "h": 298.7
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#642FA8
secondary
#9EC171
accent
#E0489D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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