#642CB8#642CB8

#642CB8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.203 H 295.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#642CB8
RGBrgb(100, 44, 184)
HSLhsl(264, 61%, 45%)
HSVhsv(264, 76%, 72%)
CMYKcmyk(45.7%, 76.1%, 0%, 27.8%)
CIE-LABlab(33.92, 53.85, -64.10)
CIE-LCHlch(33.92, 83.72, 310.03°)
OKLaboklab(45.47% 0.0864 -0.1837)
OKLCHoklch(45.47% 0.203 295.2)
XYZxyz(14.8056, 7.9710, 46.0966)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB8 #80B82C
analogous
#2C3AB8 #642CB8 #AA2CB8
triadic
#642CB8 #B8642C #2CB864
tetradic
#642CB8 #B82C3A #80B82C #2CB8AA
square
#642CB8 #B82C3A #80B82C #2CB8AA
split-complementary
#642CB8 #B8AA2C #3AB82C
monochromatic
#2E1455 #492087 #642CB8 #834DD4 #A57EE0

Accessibility & contrast

On white

8.09
#642CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#642CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB8
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB8#FFFFFF#000000##FFFFFF
##642CB81.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#4C5271
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642cb8;
/* rgb */ color: rgb(100, 44, 184);
/* oklch */ color: oklch(45.5% 0.203 295.2);
Tailwind
colors: {
  custom: {
    50: '#986bce',
    500: '#642cb8',
    950: '#000000',
  },
}
SCSS
$custom: #642cb8;
$custom-light: #986bce;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb8",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 264,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45469,
    "c": 0.20303,
    "h": 295.2
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#642CB8
secondary
#A8C977
accent
#E543A4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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