#645291#645291

#645291 is a mid, moderate violet. Relative luminance 0.108; OKLCH L 48.5% C 0.100 H 295.6°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#645291
RGBrgb(100, 82, 145)
HSLhsl(257, 28%, 45%)
HSVhsv(257, 43%, 57%)
CMYKcmyk(31%, 43.4%, 0%, 43.1%)
CIE-LABlab(39.22, 22.09, -32.22)
CIE-LCHlch(39.22, 39.06, 304.44°)
OKLaboklab(48.49% 0.0432 -0.0903)
OKLCHoklch(48.49% 0.1 295.6)
XYZxyz(13.3824, 10.7881, 28.1598)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645291 #7F9152
analogous
#526091 #645291 #845291
triadic
#645291 #916452 #529164
tetradic
#645291 #915260 #7F9152 #529184
square
#645291 #915260 #7F9152 #529184
split-complementary
#645291 #918452 #609152
monochromatic
#2E2643 #493C6A #645291 #8371AF #A598C5

Accessibility & contrast

On white

6.65
#645291 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#645291 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645291
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645291#FFFFFF#000000##FFFFFF
##6452911.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5D93
Deuteranopia (green-blind)
#425C8F
Tritanopia (blue-blind)
#5A5D6A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #645291;
/* rgb */ color: rgb(100, 82, 145);
/* oklch */ color: oklch(48.5% 0.100 295.6);
Tailwind
colors: {
  custom: {
    50: '#9283b1',
    500: '#645291',
    950: '#000000',
  },
}
SCSS
$custom: #645291;
$custom-light: #9283b1;
$custom-dark: #000000;
JSON
{
  "hex": "#645291",
  "rgb": {
    "r": 100,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 257.143,
    "s": 27.753,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.10008,
    "h": 295.6
  },
  "luminance": 0.10788
}

Semantic roles & 50–950 ramp

primary
#645291
secondary
#A7B28D
accent
#C464A9
background
#F9F8FA
surface
#F1EFF5
border
#CBCACF
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #645291

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

Preview Lab → · Contrast checker → · Palette generator →

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