#812DAF#812DAF

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

Color values

HEX#812DAF
RGBrgb(129, 45, 175)
HSLhsl(279, 59%, 43%)
HSVhsv(279, 74%, 69%)
CMYKcmyk(26.3%, 74.3%, 0%, 31.4%)
CIE-LABlab(37.19, 56.42, -53.28)
CIE-LCHlch(37.19, 77.60, 316.64°)
OKLaboklab(48.37% 0.1287 -0.1509)
OKLCHoklch(48.37% 0.198 310.5)
XYZxyz(17.7280, 9.6394, 41.4758)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812DAF #5BAF2D
analogous
#402DAF #812DAF #AF2D9C
triadic
#812DAF #AF812D #2DAF81
tetradic
#812DAF #AF402D #5BAF2D #2D9CAF
square
#812DAF #AF402D #5BAF2D #2D9CAF
split-complementary
#812DAF #9CAF2D #2DAF40
monochromatic
#39144E #5D207E #812DAF #A049D0 #BA7ADD

Accessibility & contrast

On white

7.17
#812DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#812DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812DAF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812DAF#FFFFFF#000000##FFFFFF
##812DAF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#1159AC
Tritanopia (blue-blind)
#7B4B6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812daf;
/* rgb */ color: rgb(129, 45, 175);
/* oklch */ color: oklch(48.4% 0.198 310.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ec8',
    500: '#812daf',
    950: '#000000',
  },
}
SCSS
$custom: #812daf;
$custom-light: #aa6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#812daf",
  "rgb": {
    "r": 129,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 278.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4837,
    "c": 0.19834,
    "h": 310.5
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#812DAF
secondary
#90C573
accent
#E2467D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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