#642F88#642F88

#642F88 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.146 H 308.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#642F88
RGBrgb(100, 47, 136)
HSLhsl(276, 49%, 36%)
HSVhsv(276, 65%, 53%)
CMYKcmyk(26.5%, 65.4%, 0%, 46.7%)
CIE-LABlab(30.69, 40.30, -40.29)
CIE-LCHlch(30.69, 56.98, 315.01°)
OKLaboklab(41.99% 0.0916 -0.1138)
OKLCHoklch(41.99% 0.146 308.8)
XYZxyz(10.7151, 6.5201, 23.9818)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F88 #53882F
analogous
#372F88 #642F88 #882F7F
triadic
#642F88 #88642F #2F8864
tetradic
#642F88 #88372F #53882F #2F7F88
square
#642F88 #88372F #53882F #2F7F88
split-complementary
#642F88 #7F882F #2F8837
monochromatic
#21102D #431F5B #642F88 #853FB5 #A267CA

Accessibility & contrast

On white

9.11
#642F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#642F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F88
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F88#FFFFFF#000000##FFFFFF
##642F881.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#214986
Tritanopia (blue-blind)
#5F4157
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642f88;
/* rgb */ color: rgb(100, 47, 136);
/* oklch */ color: oklch(42.0% 0.146 308.8);
Tailwind
colors: {
  custom: {
    50: '#936bab',
    500: '#642f88',
    950: '#000000',
  },
}
SCSS
$custom: #642f88;
$custom-light: #936bab;
$custom-dark: #000000;
JSON
{
  "hex": "#642f88",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 275.73,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41994,
    "c": 0.14603,
    "h": 308.8
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#642F88
secondary
#82B161
accent
#D85087
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #642F88

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

Preview Lab → · Contrast checker → · Palette generator →

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