#812FC5#812FC5

#812FC5 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.218 H 304.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#812FC5
RGBrgb(129, 47, 197)
HSLhsl(273, 61%, 48%)
HSVhsv(273, 76%, 77%)
CMYKcmyk(34.5%, 76.1%, 0%, 22.7%)
CIE-LABlab(39.12, 60.51, -63.09)
CIE-LCHlch(39.12, 87.42, 313.80°)
OKLaboklab(50.26% 0.1225 -0.1798)
OKLCHoklch(50.26% 0.218 304.3)
XYZxyz(20.1455, 10.7314, 53.8226)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FC5 #73C52F
analogous
#362FC5 #812FC5 #C52FBE
triadic
#812FC5 #C5812F #2FC581
tetradic
#812FC5 #C5362F #73C52F #2FBEC5
square
#812FC5 #C5362F #73C52F #2FBEC5
split-complementary
#812FC5 #BEC52F #2FC536
monochromatic
#401762 #612394 #812FC5 #9E5AD8 #BB8BE3

Accessibility & contrast

On white

6.67
#812FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#812FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FC5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FC5#FFFFFF#000000##FFFFFF
##812FC51.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#745579
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #812fc5;
/* rgb */ color: rgb(129, 47, 197);
/* oklch */ color: oklch(50.3% 0.218 304.3);
Tailwind
colors: {
  custom: {
    50: '#ac70d8',
    500: '#812fc5',
    950: '#000000',
  },
}
SCSS
$custom: #812fc5;
$custom-light: #ac70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#812fc5",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 272.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50256,
    "c": 0.21753,
    "h": 304.3
  },
  "luminance": 0.10731
}

Semantic roles & 50–950 ramp

primary
#812FC5
secondary
#A4CD82
accent
#E5438C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #812FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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