#642CB0#642CB0

#642CB0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.194 H 297.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#642CB0
RGBrgb(100, 44, 176)
HSLhsl(265, 60%, 43%)
HSVhsv(265, 75%, 69%)
CMYKcmyk(43.2%, 75%, 0%, 31%)
CIE-LABlab(33.23, 51.79, -60.48)
CIE-LCHlch(33.23, 79.62, 310.58°)
OKLaboklab(44.77% 0.0885 -0.1731)
OKLCHoklch(44.77% 0.194 297.1)
XYZxyz(13.9906, 7.6450, 41.8044)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642CB0 #78B02C
analogous
#2C36B0 #642CB0 #A62CB0
triadic
#642CB0 #B0642C #2CB064
tetradic
#642CB0 #B02C36 #78B02C #2CB0A6
square
#642CB0 #B02C36 #78B02C #2CB0A6
split-complementary
#642CB0 #B0A62C #36B02C
monochromatic
#2C144E #48207F #642CB0 #8248D1 #A479DD

Accessibility & contrast

On white

8.30
#642CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#642CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642CB0
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642CB0#FFFFFF#000000##FFFFFF
##642CB01.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#504F6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642cb0;
/* rgb */ color: rgb(100, 44, 176);
/* oklch */ color: oklch(44.8% 0.194 297.1);
Tailwind
colors: {
  custom: {
    50: '#976bc9',
    500: '#642cb0',
    950: '#000000',
  },
}
SCSS
$custom: #642cb0;
$custom-light: #976bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642cb0",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 265.455,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44771,
    "c": 0.19438,
    "h": 297.1
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#642CB0
secondary
#A2C672
accent
#E345A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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