#812FAF#812FAF

#812FAF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.196 H 310.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#812FAF
RGBrgb(129, 47, 175)
HSLhsl(278, 58%, 44%)
HSVhsv(278, 73%, 69%)
CMYKcmyk(26.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(37.47, 55.61, -52.82)
CIE-LCHlch(37.47, 76.69, 316.48°)
OKLaboklab(48.57% 0.1268 -0.1496)
OKLCHoklch(48.57% 0.196 310.3)
XYZxyz(17.8061, 9.7957, 41.5019)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FAF #5DAF2F
analogous
#412FAF #812FAF #AF2F9D
triadic
#812FAF #AF812F #2FAF81
tetradic
#812FAF #AF412F #5DAF2F #2F9DAF
square
#812FAF #AF412F #5DAF2F #2F9DAF
split-complementary
#812FAF #9DAF2F #2FAF41
monochromatic
#3A154F #5D227F #812FAF #A04CCF #BA7CDC

Accessibility & contrast

On white

7.10
#812FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#812FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812FAF
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FAF#FFFFFF#000000##FFFFFF
##812FAF1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#1559AC
Tritanopia (blue-blind)
#7B4C6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812faf;
/* rgb */ color: rgb(129, 47, 175);
/* oklch */ color: oklch(48.6% 0.196 310.3);
Tailwind
colors: {
  custom: {
    50: '#aa6fc8',
    500: '#812faf',
    950: '#000000',
  },
}
SCSS
$custom: #812faf;
$custom-light: #aa6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#812faf",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 278.438,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48573,
    "c": 0.19606,
    "h": 310.3
  },
  "luminance": 0.09795
}

Semantic roles & 50–950 ramp

primary
#812FAF
secondary
#92C475
accent
#E1477E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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