#812ED7#812ED7

#812ED7 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.236 H 300.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#812ED7
RGBrgb(129, 46, 215)
HSLhsl(269, 68%, 51%)
HSVhsv(269, 79%, 84%)
CMYKcmyk(40%, 78.6%, 0%, 15.7%)
CIE-LABlab(40.45, 65.01, -71.35)
CIE-LCHlch(40.45, 96.53, 312.34°)
OKLaboklab(51.64% 0.1186 -0.204)
OKLCHoklch(51.64% 0.236 300.2)
XYZxyz(22.2929, 11.5272, 65.3273)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812ED7 #84D72E
analogous
#2E2FD7 #812ED7 #D52ED7
triadic
#812ED7 #D7812E #2ED781
tetradic
#812ED7 #D72E2F #84D72E #2ED7D5
square
#812ED7 #D72E2F #84D72E #2ED7D5
split-complementary
#812ED7 #D7D52E #2FD72E
monochromatic
#441674 #6320A8 #812ED7 #A061E1 #BF95EB

Accessibility & contrast

On white

6.35
#812ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#812ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812ED7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812ED7#FFFFFF#000000##FFFFFF
##812ED71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#6D5D83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #812ed7;
/* rgb */ color: rgb(129, 46, 215);
/* oklch */ color: oklch(51.6% 0.236 300.2);
Tailwind
colors: {
  custom: {
    50: '#ad71e4',
    500: '#812ed7',
    950: '#000000',
  },
}
SCSS
$custom: #812ed7;
$custom-light: #ad71e4;
$custom-dark: #000000;
JSON
{
  "hex": "#812ed7",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 269.467,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51638,
    "c": 0.236,
    "h": 300.2
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#812ED7
secondary
#B1D68B
accent
#EB3D95
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #812ED7

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

Preview Lab → · Contrast checker → · Palette generator →

#812ED7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva