#812FAB#812FAB

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

Color values

HEX#812FAB
RGBrgb(129, 47, 171)
HSLhsl(280, 57%, 43%)
HSVhsv(280, 73%, 67%)
CMYKcmyk(24.6%, 72.5%, 0%, 32.9%)
CIE-LABlab(37.19, 54.74, -50.89)
CIE-LCHlch(37.19, 74.74, 317.09°)
OKLaboklab(48.28% 0.1274 -0.1439)
OKLCHoklch(48.28% 0.192 311.5)
XYZxyz(17.4191, 9.6409, 39.4634)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FAB #59AB2F
analogous
#432FAB #812FAB #AB2F97
triadic
#812FAB #AB812F #2FAB81
tetradic
#812FAB #AB432F #59AB2F #2F97AB
square
#812FAB #AB432F #59AB2F #2F97AB
split-complementary
#812FAB #97AB2F #2FAB43
monochromatic
#39154B #5D227B #812FAB #A14ACD #BA7ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812FAB#FFFFFF#000000##FFFFFF
##812FAB1.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)
#0054AF
Deuteranopia (green-blind)
#1D59A8
Tritanopia (blue-blind)
#7C4A6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812fab;
/* rgb */ color: rgb(129, 47, 171);
/* oklch */ color: oklch(48.3% 0.192 311.5);
Tailwind
colors: {
  custom: {
    50: '#aa6fc5',
    500: '#812fab',
    950: '#000000',
  },
}
SCSS
$custom: #812fab;
$custom-light: #aa6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#812fab",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 279.677,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48282,
    "c": 0.19217,
    "h": 311.5
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#812FAB
secondary
#8EC373
accent
#E0487B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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