#642FB7#642FB7

#642FB7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.199 H 295.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#642FB7
RGBrgb(100, 47, 183)
HSLhsl(263, 59%, 45%)
HSVhsv(263, 74%, 72%)
CMYKcmyk(45.4%, 74.3%, 0%, 28.2%)
CIE-LABlab(34.32, 52.22, -62.87)
CIE-LCHlch(34.32, 81.73, 309.71°)
OKLaboklab(45.72% 0.0841 -0.1801)
OKLCHoklch(45.72% 0.199 295)
XYZxyz(14.8170, 8.1609, 45.5851)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB7 #82B72F
analogous
#2F3EB7 #642FB7 #A82FB7
triadic
#642FB7 #B7642F #2FB764
tetradic
#642FB7 #B72F3E #82B72F #2FB7A8
square
#642FB7 #B72F3E #82B72F #2FB7A8
split-complementary
#642FB7 #B7A82F #3EB72F
monochromatic
#2F1656 #492286 #642FB7 #8351D2 #A682DF

Accessibility & contrast

On white

7.98
#642FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#642FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB7#FFFFFF#000000##FFFFFF
##642FB71.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#4C5371
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #642fb7;
/* rgb */ color: rgb(100, 47, 183);
/* oklch */ color: oklch(45.7% 0.199 295.0);
Tailwind
colors: {
  custom: {
    50: '#986dce',
    500: '#642fb7',
    950: '#000000',
  },
}
SCSS
$custom: #642fb7;
$custom-light: #986dce;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb7",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 263.382,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45718,
    "c": 0.19879,
    "h": 295
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#642FB7
secondary
#A9C87A
accent
#E245A5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #642FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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