#812EC2#812EC2

#812EC2 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.216 H 305.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#812EC2
RGBrgb(129, 46, 194)
HSLhsl(274, 62%, 47%)
HSVhsv(274, 76%, 76%)
CMYKcmyk(33.5%, 76.3%, 0%, 23.9%)
CIE-LABlab(38.75, 60.22, -61.95)
CIE-LCHlch(38.75, 86.39, 314.19°)
OKLaboklab(49.92% 0.124 -0.1764)
OKLCHoklch(49.92% 0.216 305.1)
XYZxyz(19.7657, 10.5163, 52.0170)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EC2 #6FC22E
analogous
#372EC2 #812EC2 #C22EB9
triadic
#812EC2 #C2812E #2EC281
tetradic
#812EC2 #C2372E #6FC22E #2EB9C2
square
#812EC2 #C2372E #6FC22E #2EB9C2
split-complementary
#812EC2 #B9C22E #2EC237
monochromatic
#3F175F #602291 #812EC2 #9E56D7 #BB88E3

Accessibility & contrast

On white

6.77
#812EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#812EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EC2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EC2#FFFFFF#000000##FFFFFF
##812EC21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#755477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812ec2;
/* rgb */ color: rgb(129, 46, 194);
/* oklch */ color: oklch(49.9% 0.216 305.1);
Tailwind
colors: {
  custom: {
    50: '#ab70d5',
    500: '#812ec2',
    950: '#000000',
  },
}
SCSS
$custom: #812ec2;
$custom-light: #ab70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#812ec2",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 273.649,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49922,
    "c": 0.21564,
    "h": 305.1
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#812EC2
secondary
#A1CC7F
accent
#E5438A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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