#642BB5#642BB5

#642BB5 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.201 H 296.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#642BB5
RGBrgb(100, 43, 181)
HSLhsl(265, 62%, 44%)
HSVhsv(265, 76%, 71%)
CMYKcmyk(44.8%, 76.2%, 0%, 29%)
CIE-LABlab(33.51, 53.52, -63.01)
CIE-LCHlch(33.51, 82.67, 310.35°)
OKLaboklab(45.1% 0.0881 -0.1805)
OKLCHoklch(45.1% 0.201 296)
XYZxyz(14.4577, 7.7729, 44.4457)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BB5 #7CB52B
analogous
#2B37B5 #642BB5 #A92BB5
triadic
#642BB5 #B5642B #2BB564
tetradic
#642BB5 #B52B37 #7CB52B #2BB5A9
square
#642BB5 #B52B37 #7CB52B #2BB5A9
split-complementary
#642BB5 #B5A92B #37B52B
monochromatic
#2D1452 #491F84 #642BB5 #8349D4 #A47BE0

Accessibility & contrast

On white

8.22
#642BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642BB5
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BB5#FFFFFF#000000##FFFFFF
##642BB51.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#4E506F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642bb5;
/* rgb */ color: rgb(100, 43, 181);
/* oklch */ color: oklch(45.1% 0.201 296.0);
Tailwind
colors: {
  custom: {
    50: '#986bcc',
    500: '#642bb5',
    950: '#000000',
  },
}
SCSS
$custom: #642bb5;
$custom-light: #986bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#642bb5",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 264.783,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45096,
    "c": 0.20083,
    "h": 296
  },
  "luminance": 0.07773
}

Semantic roles & 50–950 ramp

primary
#642BB5
secondary
#A5C874
accent
#E543A2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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