#642489#642489

#642489 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.162 H 310.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#642489
RGBrgb(100, 36, 137)
HSLhsl(278, 58%, 34%)
HSVhsv(278, 74%, 54%)
CMYKcmyk(27%, 73.7%, 0%, 46.3%)
CIE-LABlab(28.84, 45.86, -43.88)
CIE-LCHlch(28.84, 63.47, 316.27°)
OKLaboklab(40.7% 0.1043 -0.1242)
OKLCHoklch(40.7% 0.162 310)
XYZxyz(10.4009, 5.7774, 24.2293)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642489 #498924
analogous
#322489 #642489 #89247C
triadic
#642489 #896424 #248964
tetradic
#642489 #893224 #498924 #247C89
square
#642489 #893224 #498924 #247C89
split-complementary
#642489 #7C8924 #248932
monochromatic
#1D0B28 #411759 #642489 #8731B9 #A455D2

Accessibility & contrast

On white

9.74
#642489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#642489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642489
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642489#FFFFFF#000000##FFFFFF
##6424891.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#0F4587
Tritanopia (blue-blind)
#5F3B54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642489;
/* rgb */ color: rgb(100, 36, 137);
/* oklch */ color: oklch(40.7% 0.162 310.0);
Tailwind
colors: {
  custom: {
    50: '#9465ac',
    500: '#642489',
    950: '#000000',
  },
}
SCSS
$custom: #642489;
$custom-light: #9465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#642489",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 278.02,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40695,
    "c": 0.1622,
    "h": 310
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#642489
secondary
#77B752
accent
#E2467F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642489

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

Preview Lab → · Contrast checker → · Palette generator →

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