#642FB3#642FB3

#642FB3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.194 H 296.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#642FB3
RGBrgb(100, 47, 179)
HSLhsl(264, 58%, 44%)
HSVhsv(264, 74%, 70%)
CMYKcmyk(44.1%, 73.7%, 0%, 29.8%)
CIE-LABlab(33.98, 51.18, -61.05)
CIE-LCHlch(33.98, 79.66, 309.97°)
OKLaboklab(45.37% 0.0851 -0.1748)
OKLCHoklch(45.37% 0.194 296)
XYZxyz(14.4066, 7.9967, 43.4236)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FB3 #7EB32F
analogous
#2F3CB3 #642FB3 #A62FB3
triadic
#642FB3 #B3642F #2FB364
tetradic
#642FB3 #B32F3C #7EB32F #2FB3A6
square
#642FB3 #B32F3C #7EB32F #2FB3A6
split-complementary
#642FB3 #B3A62F #3CB32F
monochromatic
#2E1652 #492283 #642FB3 #834FD1 #A57FDD

Accessibility & contrast

On white

8.08
#642FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#642FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FB3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FB3#FFFFFF#000000##FFFFFF
##642FB31.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#4F516E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #642fb3;
/* rgb */ color: rgb(100, 47, 179);
/* oklch */ color: oklch(45.4% 0.194 296.0);
Tailwind
colors: {
  custom: {
    50: '#976dcb',
    500: '#642fb3',
    950: '#000000',
  },
}
SCSS
$custom: #642fb3;
$custom-light: #976dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#642fb3",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 264.091,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.19438,
    "h": 296
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#642FB3
secondary
#A7C678
accent
#E246A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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