#642CB4#642CB4

#642CB4 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.199 H 296.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#642CB4
RGBrgb(100, 44, 180)
HSLhsl(265, 61%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(44.4%, 75.6%, 0%, 29.4%)
CIE-LABlab(33.57, 52.82, -62.30)
CIE-LCHlch(33.57, 81.68, 310.29°)
OKLaboklab(45.12% 0.0875 -0.1784)
OKLCHoklch(45.12% 0.199 296.1)
XYZxyz(14.3922, 7.8056, 43.9195)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB4 #7CB42C
analogous
#2C38B4 #642CB4 #A82CB4
triadic
#642CB4 #B4642C #2CB464
tetradic
#642CB4 #B42C38 #7CB42C #2CB4A8
square
#642CB4 #B42C38 #7CB42C #2CB4A8
split-complementary
#642CB4 #B4A82C #38B42C
monochromatic
#2D1452 #492083 #642CB4 #834AD3 #A47CDF

Accessibility & contrast

On white

8.20
#642CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#642CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB4
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB4#FFFFFF#000000##FFFFFF
##642CB41.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#4E506E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642cb4;
/* rgb */ color: rgb(100, 44, 180);
/* oklch */ color: oklch(45.1% 0.199 296.1);
Tailwind
colors: {
  custom: {
    50: '#986bcb',
    500: '#642cb4',
    950: '#000000',
  },
}
SCSS
$custom: #642cb4;
$custom-light: #986bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb4",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 264.706,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.19871,
    "h": 296.1
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#642CB4
secondary
#A5C775
accent
#E444A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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