#642495#642495

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

Color values

HEX#642495
RGBrgb(100, 36, 149)
HSLhsl(274, 61%, 36%)
HSVhsv(274, 76%, 58%)
CMYKcmyk(32.9%, 75.8%, 0%, 41.6%)
CIE-LABlab(29.77, 48.66, -49.80)
CIE-LCHlch(29.77, 69.63, 314.34°)
OKLaboklab(41.64% 0.1021 -0.1416)
OKLCHoklch(41.64% 0.175 305.8)
XYZxyz(11.3100, 6.1411, 29.0175)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642495 #559524
analogous
#2C2495 #642495 #95248E
triadic
#642495 #956424 #249564
tetradic
#642495 #952C24 #559524 #248E95
square
#642495 #952C24 #559524 #248E95
split-complementary
#642495 #8E9524 #24952C
monochromatic
#220C32 #431864 #642495 #8530C6 #A25CD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##642495#FFFFFF#000000##FFFFFF
##6424951.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)
#004498
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#5B405B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642495;
/* rgb */ color: rgb(100, 36, 149);
/* oklch */ color: oklch(41.6% 0.175 305.8);
Tailwind
colors: {
  custom: {
    50: '#9566b5',
    500: '#642495',
    950: '#000000',
  },
}
SCSS
$custom: #642495;
$custom-light: #9566b5;
$custom-dark: #000000;
JSON
{
  "hex": "#642495",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 273.982,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41638,
    "c": 0.17459,
    "h": 305.8
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#642495
secondary
#84BC59
accent
#E44489
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642495

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

Preview Lab → · Contrast checker → · Palette generator →

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