#642895#642895

#642895 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.170 H 305.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#642895
RGBrgb(100, 40, 149)
HSLhsl(273, 58%, 37%)
HSVhsv(273, 73%, 58%)
CMYKcmyk(32.9%, 73.2%, 0%, 41.6%)
CIE-LABlab(30.39, 46.89, -48.78)
CIE-LCHlch(30.39, 67.66, 313.87°)
OKLaboklab(42.08% 0.0981 -0.1387)
OKLCHoklch(42.08% 0.17 305.3)
XYZxyz(11.4379, 6.3969, 29.0601)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642895 #599528
analogous
#2E2895 #642895 #95288F
triadic
#642895 #956428 #289564
tetradic
#642895 #952E28 #599528 #288F95
square
#642895 #952E28 #599528 #288F95
split-complementary
#642895 #8F9528 #28952E
monochromatic
#230E35 #441B65 #642895 #8435C5 #A162D5

Accessibility & contrast

On white

9.21
#642895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#642895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642895
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642895#FFFFFF#000000##FFFFFF
##6428951.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#5B425C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642895;
/* rgb */ color: rgb(100, 40, 149);
/* oklch */ color: oklch(42.1% 0.170 305.3);
Tailwind
colors: {
  custom: {
    50: '#9568b5',
    500: '#642895',
    950: '#000000',
  },
}
SCSS
$custom: #642895;
$custom-light: #9568b5;
$custom-dark: #000000;
JSON
{
  "hex": "#642895",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 273.028,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42081,
    "c": 0.16986,
    "h": 305.3
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#642895
secondary
#88BB5E
accent
#E1478C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642895

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

Preview Lab → · Contrast checker → · Palette generator →

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