#642FB0#642FB0

#642FB0 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.191 H 296.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#642FB0
RGBrgb(100, 47, 176)
HSLhsl(265, 58%, 44%)
HSVhsv(265, 73%, 69%)
CMYKcmyk(43.2%, 73.3%, 0%, 31%)
CIE-LABlab(33.72, 50.40, -59.67)
CIE-LCHlch(33.72, 78.11, 310.18°)
OKLaboklab(45.12% 0.0858 -0.1707)
OKLCHoklch(45.12% 0.191 296.7)
XYZxyz(14.1065, 7.8767, 41.8430)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB0 #7BB02F
analogous
#2F3AB0 #642FB0 #A42FB0
triadic
#642FB0 #B0642F #2FB064
tetradic
#642FB0 #B02F3A #7BB02F #2FB0A4
square
#642FB0 #B02F3A #7BB02F #2FB0A4
split-complementary
#642FB0 #B0A42F #3AB02F
monochromatic
#2D154F #492280 #642FB0 #824DCF #A47DDC

Accessibility & contrast

On white

8.15
#642FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#642FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB0
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB0#FFFFFF#000000##FFFFFF
##642FB01.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#50506D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642fb0;
/* rgb */ color: rgb(100, 47, 176);
/* oklch */ color: oklch(45.1% 0.191 296.7);
Tailwind
colors: {
  custom: {
    50: '#976dc9',
    500: '#642fb0',
    950: '#000000',
  },
}
SCSS
$custom: #642fb0;
$custom-light: #976dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb0",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 264.651,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45119,
    "c": 0.19106,
    "h": 296.7
  },
  "luminance": 0.07877
}

Semantic roles & 50–950 ramp

primary
#642FB0
secondary
#A4C576
accent
#E147A2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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