#642BAF#642BAF

#642BAF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.194 H 297.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#642BAF
RGBrgb(100, 43, 175)
HSLhsl(266, 61%, 43%)
HSVhsv(266, 75%, 69%)
CMYKcmyk(42.9%, 75.4%, 0%, 31.4%)
CIE-LABlab(32.99, 51.99, -60.28)
CIE-LCHlch(32.99, 79.60, 310.78°)
OKLaboklab(44.57% 0.0896 -0.1725)
OKLCHoklch(44.57% 0.194 297.4)
XYZxyz(13.8553, 7.5320, 41.2730)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642BAF #76AF2B
analogous
#2B34AF #642BAF #A62BAF
triadic
#642BAF #AF642B #2BAF64
tetradic
#642BAF #AF2B34 #76AF2B #2BAFA6
square
#642BAF #AF2B34 #76AF2B #2BAFA6
split-complementary
#642BAF #AFA62B #34AF2B
monochromatic
#2C134D #481F7E #642BAF #8246D1 #A377DE

Accessibility & contrast

On white

8.38
#642BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#642BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642BAF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642BAF#FFFFFF#000000##FFFFFF
##642BAF1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#514E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #642baf;
/* rgb */ color: rgb(100, 43, 175);
/* oklch */ color: oklch(44.6% 0.194 297.4);
Tailwind
colors: {
  custom: {
    50: '#976ac8',
    500: '#642baf',
    950: '#000000',
  },
}
SCSS
$custom: #642baf;
$custom-light: #976ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#642baf",
  "rgb": {
    "r": 100,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 265.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44573,
    "c": 0.19437,
    "h": 297.4
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#642BAF
secondary
#A1C570
accent
#E4449F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #642BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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