#642285#642285

#642285 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.2% C 0.161 H 311.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#642285
RGBrgb(100, 34, 133)
HSLhsl(280, 59%, 33%)
HSVhsv(280, 74%, 52%)
CMYKcmyk(24.8%, 74.4%, 0%, 47.8%)
CIE-LABlab(28.24, 45.83, -42.36)
CIE-LCHlch(28.24, 62.41, 317.25°)
OKLaboklab(40.17% 0.107 -0.1198)
OKLCHoklch(40.17% 0.161 311.8)
XYZxyz(10.0604, 5.5471, 22.7265)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642285 #438522
analogous
#332285 #642285 #852274
triadic
#642285 #856422 #228564
tetradic
#642285 #853322 #438522 #227485
square
#642285 #853322 #438522 #227485
split-complementary
#642285 #748522 #228533
monochromatic
#1B0924 #3F1654 #642285 #892EB6 #A64FD2

Accessibility & contrast

On white

9.96
#642285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#642285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642285
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642285#FFFFFF#000000##FFFFFF
##6422851.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#144483
Tritanopia (blue-blind)
#603851
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642285;
/* rgb */ color: rgb(100, 34, 133);
/* oklch */ color: oklch(40.2% 0.161 311.8);
Tailwind
colors: {
  custom: {
    50: '#9464a9',
    500: '#642285',
    950: '#000000',
  },
}
SCSS
$custom: #642285;
$custom-light: #9464a9;
$custom-dark: #000000;
JSON
{
  "hex": "#642285",
  "rgb": {
    "r": 100,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 280,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40172,
    "c": 0.16058,
    "h": 311.8
  },
  "luminance": 0.05547
}

Semantic roles & 50–950 ramp

primary
#642285
secondary
#70B64D
accent
#E2457A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642285

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

Preview Lab → · Contrast checker → · Palette generator →

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