#813FAF#813FAF

#813FAF is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.175 H 308.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#813FAF
RGBrgb(129, 63, 175)
HSLhsl(275, 47%, 47%)
HSVhsv(275, 64%, 69%)
CMYKcmyk(26.3%, 64%, 0%, 31.4%)
CIE-LABlab(40.11, 48.26, -48.56)
CIE-LCHlch(40.11, 68.47, 314.82°)
OKLaboklab(50.46% 0.1091 -0.1372)
OKLCHoklch(50.46% 0.175 308.5)
XYZxyz(18.5671, 11.3176, 41.7555)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#813FAF #6DAF3F
analogous
#493FAF #813FAF #AF3FA5
triadic
#813FAF #AF813F #3FAF81
tetradic
#813FAF #AF493F #6DAF3F #3FA5AF
square
#813FAF #AF493F #6DAF3F #3FA5AF
split-complementary
#813FAF #A5AF3F #3FAF49
monochromatic
#3F1F55 #602F82 #813FAF #9E64C7 #BA91D7

Accessibility & contrast

On white

6.44
#813FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#813FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #813FAF
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##813FAF#FFFFFF#000000##FFFFFF
##813FAF1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#2C5FAC
Tritanopia (blue-blind)
#7A5671
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #813faf;
/* rgb */ color: rgb(129, 63, 175);
/* oklch */ color: oklch(50.5% 0.175 308.5);
Tailwind
colors: {
  custom: {
    50: '#a978c7',
    500: '#813faf',
    950: '#000000',
  },
}
SCSS
$custom: #813faf;
$custom-light: #a978c7;
$custom-dark: #000000;
JSON
{
  "hex": "#813faf",
  "rgb": {
    "r": 129,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 275.357,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50461,
    "c": 0.17528,
    "h": 308.5
  },
  "luminance": 0.11317
}

Semantic roles & 50–950 ramp

primary
#813FAF
secondary
#A0C387
accent
#D75188
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #813FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#813FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva