#645098#645098

#645098 is a mid, moderate violet. Relative luminance 0.107; OKLCH L 48.5% C 0.113 H 294.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#645098
RGBrgb(100, 80, 152)
HSLhsl(257, 31%, 45%)
HSVhsv(257, 47%, 60%)
CMYKcmyk(34.2%, 47.4%, 0%, 40.4%)
CIE-LABlab(39.09, 25.26, -36.64)
CIE-LCHlch(39.09, 44.51, 304.58°)
OKLaboklab(48.52% 0.0472 -0.1032)
OKLCHoklch(48.52% 0.113 294.6)
XYZxyz(13.7903, 10.7134, 31.0410)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645098 #849850
analogous
#506098 #645098 #885098
triadic
#645098 #986450 #509864
tetradic
#645098 #985060 #849850 #509888
square
#645098 #985060 #849850 #509888
split-complementary
#645098 #988850 #609850
monochromatic
#2F2648 #4A3B70 #645098 #8471B4 #A699C9

Accessibility & contrast

On white

6.68
#645098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#645098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645098
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645098#FFFFFF#000000##FFFFFF
##6450981.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9B
Deuteranopia (green-blind)
#3B5B96
Tritanopia (blue-blind)
#585E6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #645098;
/* rgb */ color: rgb(100, 80, 152);
/* oklch */ color: oklch(48.5% 0.113 294.6);
Tailwind
colors: {
  custom: {
    50: '#9281b7',
    500: '#645098',
    950: '#000000',
  },
}
SCSS
$custom: #645098;
$custom-light: #9281b7;
$custom-dark: #000000;
JSON
{
  "hex": "#645098",
  "rgb": {
    "r": 100,
    "g": 80,
    "b": 152
  },
  "hsl": {
    "h": 256.667,
    "s": 31.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48516,
    "c": 0.11345,
    "h": 294.6
  },
  "luminance": 0.10714
}

Semantic roles & 50–950 ramp

primary
#645098
secondary
#ABB68E
accent
#C761AB
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #645098

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

Preview Lab → · Contrast checker → · Palette generator →

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