#642FAC#642FAC

#642FAC is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.187 H 297.7°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#642FAC
RGBrgb(100, 47, 172)
HSLhsl(265, 57%, 43%)
HSVhsv(265, 73%, 67%)
CMYKcmyk(41.9%, 72.7%, 0%, 32.5%)
CIE-LABlab(33.39, 49.36, -57.83)
CIE-LCHlch(33.39, 76.03, 310.48°)
OKLaboklab(44.78% 0.0866 -0.1653)
OKLCHoklch(44.78% 0.187 297.7)
XYZxyz(13.7165, 7.7207, 39.7893)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642FAC #77AC2F
analogous
#2F38AC #642FAC #A22FAC
triadic
#642FAC #AC642F #2FAC64
tetradic
#642FAC #AC2F38 #77AC2F #2FACA2
square
#642FAC #AC2F38 #77AC2F #2FACA2
split-complementary
#642FAC #ACA22F #38AC2F
monochromatic
#2C154C #48227C #642FAC #824BCE #A37BDB

Accessibility & contrast

On white

8.25
#642FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#642FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642FAC
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642FAC#FFFFFF#000000##FFFFFF
##642FAC1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#524F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #642fac;
/* rgb */ color: rgb(100, 47, 172);
/* oklch */ color: oklch(44.8% 0.187 297.7);
Tailwind
colors: {
  custom: {
    50: '#976cc6',
    500: '#642fac',
    950: '#000000',
  },
}
SCSS
$custom: #642fac;
$custom-light: #976cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#642fac",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 265.44,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44782,
    "c": 0.18662,
    "h": 297.7
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#642FAC
secondary
#A1C374
accent
#E047A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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