#642EBF#642EBF

#642EBF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.209 H 293.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#642EBF
RGBrgb(100, 46, 191)
HSLhsl(262, 61%, 46%)
HSVhsv(262, 76%, 75%)
CMYKcmyk(47.6%, 75.9%, 0%, 25.1%)
CIE-LABlab(34.85, 54.77, -66.71)
CIE-LCHlch(34.85, 86.31, 309.39°)
OKLaboklab(46.31% 0.083 -0.1914)
OKLCHoklch(46.31% 0.209 293.4)
XYZxyz(15.6339, 8.4244, 50.0825)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642EBF #89BF2E
analogous
#2E41BF #642EBF #AD2EBF
triadic
#642EBF #BF642E #2EBF64
tetradic
#642EBF #BF2E41 #89BF2E #2EBFAD
square
#642EBF #BF2E41 #89BF2E #2EBFAD
split-complementary
#642EBF #BFAD2E #41BF2E
monochromatic
#30165C #4A228E #642EBF #8554D6 #A886E2

Accessibility & contrast

On white

7.82
#642EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#642EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642EBF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642EBF#FFFFFF#000000##FFFFFF
##642EBF1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#485675
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #642ebf;
/* rgb */ color: rgb(100, 46, 191);
/* oklch */ color: oklch(46.3% 0.209 293.4);
Tailwind
colors: {
  custom: {
    50: '#996dd3',
    500: '#642ebf',
    950: '#000000',
  },
}
SCSS
$custom: #642ebf;
$custom-light: #996dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#642ebf",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 262.345,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46309,
    "c": 0.20857,
    "h": 293.4
  },
  "luminance": 0.08425
}

Semantic roles & 50–950 ramp

primary
#642EBF
secondary
#AECB7E
accent
#E444A8
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #642EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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