#812AAF#812AAF

#812AAF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.202 H 310.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#812AAF
RGBrgb(129, 42, 175)
HSLhsl(279, 61%, 43%)
HSVhsv(279, 76%, 69%)
CMYKcmyk(26.3%, 76%, 0%, 31.4%)
CIE-LABlab(36.78, 57.59, -53.94)
CIE-LCHlch(36.78, 78.91, 316.88°)
OKLaboklab(48.08% 0.1315 -0.1528)
OKLCHoklch(48.08% 0.202 310.7)
XYZxyz(17.6176, 9.4186, 41.4390)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AAF #58AF2A
analogous
#3E2AAF #812AAF #AF2A9A
triadic
#812AAF #AF812A #2AAF81
tetradic
#812AAF #AF3E2A #58AF2A #2A9AAF
square
#812AAF #AF3E2A #58AF2A #2A9AAF
split-complementary
#812AAF #9AAF2A #2AAF3E
monochromatic
#38124C #5D1E7E #812AAF #A144D2 #BA75DE

Accessibility & contrast

On white

7.28
#812AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#812AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AAF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AAF#FFFFFF#000000##FFFFFF
##812AAF1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0958AC
Tritanopia (blue-blind)
#7B4A6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812aaf;
/* rgb */ color: rgb(129, 42, 175);
/* oklch */ color: oklch(48.1% 0.202 310.7);
Tailwind
colors: {
  custom: {
    50: '#aa6dc8',
    500: '#812aaf',
    950: '#000000',
  },
}
SCSS
$custom: #812aaf;
$custom-light: #aa6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#812aaf",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 279.248,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48081,
    "c": 0.20162,
    "h": 310.7
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#812AAF
secondary
#8DC66F
accent
#E4437B
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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