#642F85#642F85

#642F85 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.143 H 310.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#642F85
RGBrgb(100, 47, 133)
HSLhsl(277, 48%, 35%)
HSVhsv(277, 65%, 52%)
CMYKcmyk(24.8%, 64.7%, 0%, 47.8%)
CIE-LABlab(30.49, 39.58, -38.74)
CIE-LCHlch(30.49, 55.38, 315.61°)
OKLaboklab(41.78% 0.0917 -0.1092)
OKLCHoklch(41.78% 0.143 310)
XYZxyz(10.5049, 6.4360, 22.8746)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F85 #50852F
analogous
#392F85 #642F85 #852F7B
triadic
#642F85 #85642F #2F8564
tetradic
#642F85 #85392F #50852F #2F7B85
square
#642F85 #85392F #50852F #2F7B85
split-complementary
#642F85 #7B852F #2F8539
monochromatic
#200F2B #421F58 #642F85 #863FB2 #A366C9

Accessibility & contrast

On white

9.18
#642F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F85
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F85#FFFFFF#000000##FFFFFF
##642F851.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044588
Deuteranopia (green-blind)
#244983
Tritanopia (blue-blind)
#604055
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642f85;
/* rgb */ color: rgb(100, 47, 133);
/* oklch */ color: oklch(41.8% 0.143 310.0);
Tailwind
colors: {
  custom: {
    50: '#936ba9',
    500: '#642f85',
    950: '#000000',
  },
}
SCSS
$custom: #642f85;
$custom-light: #936ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#642f85",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 276.977,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.14262,
    "h": 310
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#642F85
secondary
#7FB060
accent
#D75084
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F85

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

Preview Lab → · Contrast checker → · Palette generator →

#642F85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva