#812FC2#812FC2

#812FC2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.215 H 305.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#812FC2
RGBrgb(129, 47, 194)
HSLhsl(273, 61%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(33.5%, 75.8%, 0%, 23.9%)
CIE-LABlab(38.89, 59.83, -61.72)
CIE-LCHlch(38.89, 85.96, 314.11°)
OKLaboklab(50.02% 0.1232 -0.1757)
OKLCHoklch(50.02% 0.215 305)
XYZxyz(19.8052, 10.5953, 52.0302)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FC2 #70C22F
analogous
#372FC2 #812FC2 #C22FBA
triadic
#812FC2 #C2812F #2FC281
tetradic
#812FC2 #C2372F #70C22F #2FBAC2
square
#812FC2 #C2372F #70C22F #2FBAC2
split-complementary
#812FC2 #BAC22F #2FC237
monochromatic
#3F175F #602391 #812FC2 #9E58D6 #BB89E2

Accessibility & contrast

On white

6.73
#812FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#812FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FC2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FC2#FFFFFF#000000##FFFFFF
##812FC21.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812fc2;
/* rgb */ color: rgb(129, 47, 194);
/* oklch */ color: oklch(50.0% 0.215 305.0);
Tailwind
colors: {
  custom: {
    50: '#ab70d5',
    500: '#812fc2',
    950: '#000000',
  },
}
SCSS
$custom: #812fc2;
$custom-light: #ab70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#812fc2",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 273.469,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.21461,
    "h": 305
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#812FC2
secondary
#A2CC81
accent
#E4448B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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