#812CAF#812CAF

#812CAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 310.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#812CAF
RGBrgb(129, 44, 175)
HSLhsl(279, 60%, 43%)
HSVhsv(279, 75%, 69%)
CMYKcmyk(26.3%, 74.9%, 0%, 31.4%)
CIE-LABlab(37.05, 56.82, -53.50)
CIE-LCHlch(37.05, 78.04, 316.72°)
OKLaboklab(48.27% 0.1297 -0.1516)
OKLCHoklch(48.27% 0.199 310.5)
XYZxyz(17.6903, 9.5640, 41.4633)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CAF #5AAF2C
analogous
#3F2CAF #812CAF #AF2C9B
triadic
#812CAF #AF812C #2CAF81
tetradic
#812CAF #AF3F2C #5AAF2C #2C9BAF
square
#812CAF #AF3F2C #5AAF2C #2C9BAF
split-complementary
#812CAF #9BAF2C #2CAF3F
monochromatic
#39134D #5D207E #812CAF #A147D1 #BA78DD

Accessibility & contrast

On white

7.21
#812CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#812CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CAF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CAF#FFFFFF#000000##FFFFFF
##812CAF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0F59AC
Tritanopia (blue-blind)
#7B4B6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812caf;
/* rgb */ color: rgb(129, 44, 175);
/* oklch */ color: oklch(48.3% 0.199 310.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ec8',
    500: '#812caf',
    950: '#000000',
  },
}
SCSS
$custom: #812caf;
$custom-light: #aa6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#812caf",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 278.931,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48272,
    "c": 0.19945,
    "h": 310.5
  },
  "luminance": 0.09564
}

Semantic roles & 50–950 ramp

primary
#812CAF
secondary
#8FC572
accent
#E3457C
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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