#645874#645874

#645874 is a mid, muted violet. Relative luminance 0.110; OKLCH L 48.3% C 0.046 H 304.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#645874
RGBrgb(100, 88, 116)
HSLhsl(266, 14%, 40%)
HSVhsv(266, 24%, 45%)
CMYKcmyk(13.8%, 24.1%, 0%, 54.5%)
CIE-LABlab(39.50, 10.91, -14.10)
CIE-LCHlch(39.50, 17.82, 307.73°)
OKLaboklab(48.26% 0.0261 -0.0384)
OKLCHoklch(48.26% 0.046 304.2)
XYZxyz(11.8970, 10.9498, 18.0064)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645874 #687458
analogous
#585A74 #645874 #725874
triadic
#645874 #746458 #587464
tetradic
#645874 #74585A #687458 #587472
square
#645874 #74585A #687458 #587472
split-complementary
#645874 #747258 #5A7458
monochromatic
#28232E #463E51 #645874 #827495 #A197B0

Accessibility & contrast

On white

6.58
#645874 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#645874 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645874
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645874#FFFFFF#000000##FFFFFF
##6458741.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535D75
Deuteranopia (green-blind)
#555D73
Tritanopia (blue-blind)
#625C62
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #645874;
/* rgb */ color: rgb(100, 88, 116);
/* oklch */ color: oklch(48.3% 0.046 304.2);
Tailwind
colors: {
  custom: {
    50: '#90879c',
    500: '#645874',
    950: '#000000',
  },
}
SCSS
$custom: #645874;
$custom-light: #90879c;
$custom-dark: #000000;
JSON
{
  "hex": "#645874",
  "rgb": {
    "r": 100,
    "g": 88,
    "b": 116
  },
  "hsl": {
    "h": 265.714,
    "s": 13.725,
    "l": 40
  },
  "oklch": {
    "l": 0.48261,
    "c": 0.04646,
    "h": 304.2
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

primary
#645874
secondary
#959E8A
accent
#B77199
background
#F8F8F9
surface
#F0EFF2
border
#CBCACC
text
#0C0B0E
muted
#7D7C7E

Preview Lab

Preview with #645874

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

Preview Lab → · Contrast checker → · Palette generator →

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