#642397#642397

#642397 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.178 H 305.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#642397
RGBrgb(100, 35, 151)
HSLhsl(274, 62%, 36%)
HSVhsv(274, 77%, 59%)
CMYKcmyk(33.8%, 76.8%, 0%, 40.8%)
CIE-LABlab(29.78, 49.56, -51.01)
CIE-LCHlch(29.78, 71.12, 314.18°)
OKLaboklab(41.7% 0.1026 -0.1452)
OKLCHoklch(41.7% 0.178 305.2)
XYZxyz(11.4412, 6.1458, 29.8557)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642397 #569723
analogous
#2A2397 #642397 #972390
triadic
#642397 #976423 #239764
tetradic
#642397 #972A23 #569723 #239097
square
#642397 #972A23 #569723 #239097
split-complementary
#642397 #909723 #23972A
monochromatic
#220C34 #431765 #642397 #852FC9 #A25BD9

Accessibility & contrast

On white

9.42
#642397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#642397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642397
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642397#FFFFFF#000000##FFFFFF
##6423971.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#5A405C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642397;
/* rgb */ color: rgb(100, 35, 151);
/* oklch */ color: oklch(41.7% 0.178 305.2);
Tailwind
colors: {
  custom: {
    50: '#9565b6',
    500: '#642397',
    950: '#000000',
  },
}
SCSS
$custom: #642397;
$custom-light: #9565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#642397",
  "rgb": {
    "r": 100,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 273.621,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41696,
    "c": 0.17777,
    "h": 305.2
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#642397
secondary
#85BE58
accent
#E5428A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642397

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

Preview Lab → · Contrast checker → · Palette generator →

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