#642287#642287

#642287 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.163 H 311.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#642287
RGBrgb(100, 34, 135)
HSLhsl(279, 60%, 33%)
HSVhsv(279, 75%, 53%)
CMYKcmyk(25.9%, 74.8%, 0%, 47.1%)
CIE-LABlab(28.39, 46.28, -43.37)
CIE-LCHlch(28.39, 63.43, 316.86°)
OKLaboklab(40.32% 0.1067 -0.1227)
OKLCHoklch(40.32% 0.163 311)
XYZxyz(10.1999, 5.6029, 23.4611)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642287 #458722
analogous
#312287 #642287 #872277
triadic
#642287 #876422 #228764
tetradic
#642287 #873122 #458722 #227787
square
#642287 #873122 #458722 #227787
split-complementary
#642287 #778722 #228731
monochromatic
#1C0925 #401656 #642287 #882EB8 #A650D3

Accessibility & contrast

On white

9.90
#642287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#642287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642287
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642287#FFFFFF#000000##FFFFFF
##6422871.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#104485
Tritanopia (blue-blind)
#5F3952
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642287;
/* rgb */ color: rgb(100, 34, 135);
/* oklch */ color: oklch(40.3% 0.163 311.0);
Tailwind
colors: {
  custom: {
    50: '#9464ab',
    500: '#642287',
    950: '#000000',
  },
}
SCSS
$custom: #642287;
$custom-light: #9464ab;
$custom-dark: #000000;
JSON
{
  "hex": "#642287",
  "rgb": {
    "r": 100,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 279.208,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40324,
    "c": 0.16261,
    "h": 311
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#642287
secondary
#72B74E
accent
#E3457C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642287

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

Preview Lab → · Contrast checker → · Palette generator →

#642287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva