#642286#642286

#642286 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.162 H 311.4°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#642286
RGBrgb(100, 34, 134)
HSLhsl(280, 60%, 33%)
HSVhsv(280, 75%, 53%)
CMYKcmyk(25.4%, 74.6%, 0%, 47.5%)
CIE-LABlab(28.31, 46.05, -42.87)
CIE-LCHlch(28.31, 62.92, 317.05°)
OKLaboklab(40.25% 0.1068 -0.1213)
OKLCHoklch(40.25% 0.162 311.4)
XYZxyz(10.1298, 5.5749, 23.0921)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642286 #448622
analogous
#322286 #642286 #862276
triadic
#642286 #866422 #228664
tetradic
#642286 #863222 #448622 #227686
square
#642286 #863222 #448622 #227686
split-complementary
#642286 #768622 #228632
monochromatic
#1B0924 #401655 #642286 #882EB7 #A650D3

Accessibility & contrast

On white

9.93
#642286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#642286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642286
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642286#FFFFFF#000000##FFFFFF
##6422861.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#124484
Tritanopia (blue-blind)
#603852
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642286;
/* rgb */ color: rgb(100, 34, 134);
/* oklch */ color: oklch(40.2% 0.162 311.4);
Tailwind
colors: {
  custom: {
    50: '#9464aa',
    500: '#642286',
    950: '#000000',
  },
}
SCSS
$custom: #642286;
$custom-light: #9464aa;
$custom-dark: #000000;
JSON
{
  "hex": "#642286",
  "rgb": {
    "r": 100,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 279.6,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.1616,
    "h": 311.4
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#642286
secondary
#71B64E
accent
#E3457B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #642286

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

Preview Lab → · Contrast checker → · Palette generator →

#642286 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva