#642FC9#642FC9

#642FC9 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.218 H 291.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#642FC9
RGBrgb(100, 47, 201)
HSLhsl(261, 62%, 49%)
HSVhsv(261, 77%, 79%)
CMYKcmyk(50.2%, 76.6%, 0%, 21.2%)
CIE-LABlab(35.90, 56.94, -70.84)
CIE-LCHlch(35.90, 90.89, 308.79°)
OKLaboklab(47.32% 0.0794 -0.2035)
OKLCHoklch(47.32% 0.218 291.3)
XYZxyz(16.8117, 8.9587, 56.0904)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FC9 #94C92F
analogous
#2F47C9 #642FC9 #B12FC9
triadic
#642FC9 #C9642F #2FC964
tetradic
#642FC9 #C92F47 #94C92F #2FC9B1
square
#642FC9 #C92F47 #94C92F #2FC9B1
split-complementary
#642FC9 #C9B12F #47C92F
monochromatic
#331866 #4B2397 #642FC9 #875CD9 #AC8EE5

Accessibility & contrast

On white

7.52
#642FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#642FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FC9
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FC9#FFFFFF#000000##FFFFFF
##642FC91.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#415A7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #642fc9;
/* rgb */ color: rgb(100, 47, 201);
/* oklch */ color: oklch(47.3% 0.218 291.3);
Tailwind
colors: {
  custom: {
    50: '#9a6edb',
    500: '#642fc9',
    950: '#000000',
  },
}
SCSS
$custom: #642fc9;
$custom-light: #9a6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#642fc9",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 260.649,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4732,
    "c": 0.21843,
    "h": 291.3
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#642FC9
secondary
#B5CF85
accent
#E543AD
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #642FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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