#812FC4#812FC4

#812FC4 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.217 H 304.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#812FC4
RGBrgb(129, 47, 196)
HSLhsl(273, 61%, 48%)
HSVhsv(273, 76%, 77%)
CMYKcmyk(34.2%, 76%, 0%, 23.1%)
CIE-LABlab(39.05, 60.28, -62.64)
CIE-LCHlch(39.05, 86.93, 313.90°)
OKLaboklab(50.18% 0.1227 -0.1784)
OKLCHoklch(50.18% 0.217 304.5)
XYZxyz(20.0313, 10.6858, 53.2211)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FC4 #72C42F
analogous
#362FC4 #812FC4 #C42FBD
triadic
#812FC4 #C4812F #2FC481
tetradic
#812FC4 #C4362F #72C42F #2FBDC4
square
#812FC4 #C4362F #72C42F #2FBDC4
split-complementary
#812FC4 #BDC42F #2FC436
monochromatic
#401761 #612393 #812FC4 #9E59D7 #BB8AE3

Accessibility & contrast

On white

6.69
#812FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#812FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FC4
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FC4#FFFFFF#000000##FFFFFF
##812FC41.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#745578
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #812fc4;
/* rgb */ color: rgb(129, 47, 196);
/* oklch */ color: oklch(50.2% 0.217 304.5);
Tailwind
colors: {
  custom: {
    50: '#ab70d7',
    500: '#812fc4',
    950: '#000000',
  },
}
SCSS
$custom: #812fc4;
$custom-light: #ab70d7;
$custom-dark: #000000;
JSON
{
  "hex": "#812fc4",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 273.02,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50176,
    "c": 0.21656,
    "h": 304.5
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#812FC4
secondary
#A4CD82
accent
#E4438C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #812FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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