#642799#642799

#642799 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.175 H 304.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#642799
RGBrgb(100, 39, 153)
HSLhsl(272, 59%, 38%)
HSVhsv(272, 75%, 60%)
CMYKcmyk(34.6%, 74.5%, 0%, 40%)
CIE-LABlab(30.55, 48.31, -50.98)
CIE-LCHlch(30.55, 70.23, 313.46°)
OKLaboklab(42.29% 0.0983 -0.1451)
OKLCHoklch(42.29% 0.175 304.1)
XYZxyz(11.7295, 6.4603, 30.7598)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642799 #5C9927
analogous
#2B2799 #642799 #992795
triadic
#642799 #996427 #279964
tetradic
#642799 #992B27 #5C9927 #279599
square
#642799 #992B27 #5C9927 #279599
split-complementary
#642799 #959927 #27992B
monochromatic
#240E37 #441B68 #642799 #8433CA #A163D7

Accessibility & contrast

On white

9.16
#642799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#642799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642799
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642799#FFFFFF#000000##FFFFFF
##6427991.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#5A435E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #642799;
/* rgb */ color: rgb(100, 39, 153);
/* oklch */ color: oklch(42.3% 0.175 304.1);
Tailwind
colors: {
  custom: {
    50: '#9567b8',
    500: '#642799',
    950: '#000000',
  },
}
SCSS
$custom: #642799;
$custom-light: #9567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#642799",
  "rgb": {
    "r": 100,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 272.105,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42288,
    "c": 0.17532,
    "h": 304.1
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#642799
secondary
#8BBD5F
accent
#E3458E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #642799

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

Preview Lab → · Contrast checker → · Palette generator →

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