#642CB3#642CB3

#642CB3 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.198 H 296.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#642CB3
RGBrgb(100, 44, 179)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 75%, 70%)
CMYKcmyk(44.1%, 75.4%, 0%, 29.8%)
CIE-LABlab(33.49, 52.56, -61.85)
CIE-LCHlch(33.49, 81.16, 310.36°)
OKLaboklab(45.03% 0.0877 -0.1771)
OKLCHoklch(45.03% 0.198 296.4)
XYZxyz(14.2907, 7.7650, 43.3850)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB3 #7BB32C
analogous
#2C37B3 #642CB3 #A72CB3
triadic
#642CB3 #B3642C #2CB364
tetradic
#642CB3 #B32C37 #7BB32C #2CB3A7
square
#642CB3 #B32C37 #7BB32C #2CB3A7
split-complementary
#642CB3 #B3A72C #37B32C
monochromatic
#2D1451 #492082 #642CB3 #824AD2 #A47BDF

Accessibility & contrast

On white

8.23
#642CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#642CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB3
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB3#FFFFFF#000000##FFFFFF
##642CB31.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#4F506E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642cb3;
/* rgb */ color: rgb(100, 44, 179);
/* oklch */ color: oklch(45.0% 0.198 296.4);
Tailwind
colors: {
  custom: {
    50: '#986bcb',
    500: '#642cb3',
    950: '#000000',
  },
}
SCSS
$custom: #642cb3;
$custom-light: #986bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb3",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 264.889,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45031,
    "c": 0.19763,
    "h": 296.4
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#642CB3
secondary
#A4C774
accent
#E444A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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