#645182#645182

#645182 is a mid, moderate violet. Relative luminance 0.102; OKLCH L 47.5% C 0.080 H 301.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#645182
RGBrgb(100, 81, 130)
HSLhsl(263, 23%, 41%)
HSVhsv(263, 38%, 51%)
CMYKcmyk(23.1%, 37.7%, 0%, 49%)
CIE-LABlab(38.21, 18.74, -24.67)
CIE-LCHlch(38.21, 30.98, 307.22°)
OKLaboklab(47.47% 0.0415 -0.0684)
OKLCHoklch(47.47% 0.08 301.3)
XYZxyz(12.2264, 10.2059, 22.4406)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645182 #6F8251
analogous
#515782 #645182 #7D5182
triadic
#645182 #826451 #518264
tetradic
#645182 #825157 #6F8251 #51827D
square
#645182 #825157 #6F8251 #51827D
split-complementary
#645182 #827D51 #578251
monochromatic
#2A2237 #473A5C #645182 #826CA4 #A292BB

Accessibility & contrast

On white

6.91
#645182 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#645182 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645182
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645182#FFFFFF#000000##FFFFFF
##6451821.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455A84
Deuteranopia (green-blind)
#495A81
Tritanopia (blue-blind)
#5F5963
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #645182;
/* rgb */ color: rgb(100, 81, 130);
/* oklch */ color: oklch(47.5% 0.080 301.3);
Tailwind
colors: {
  custom: {
    50: '#9182a6',
    500: '#645182',
    950: '#000000',
  },
}
SCSS
$custom: #645182;
$custom-light: #9182a6;
$custom-dark: #000000;
JSON
{
  "hex": "#645182",
  "rgb": {
    "r": 100,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 263.265,
    "s": 23.223,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.08006,
    "h": 301.3
  },
  "luminance": 0.10206
}

Semantic roles & 50–950 ramp

primary
#645182
secondary
#9BA887
accent
#C0689E
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0D0A0F
muted
#7D7C7F

Preview Lab

Preview with #645182

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

Preview Lab → · Contrast checker → · Palette generator →

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