#812FA2#812FA2

#812FA2 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.183 H 314.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#812FA2
RGBrgb(129, 47, 162)
HSLhsl(283, 55%, 41%)
HSVhsv(283, 71%, 64%)
CMYKcmyk(20.4%, 71%, 0%, 36.5%)
CIE-LABlab(36.57, 52.82, -46.49)
CIE-LCHlch(36.57, 70.37, 318.65°)
OKLaboklab(47.65% 0.1284 -0.131)
OKLCHoklch(47.65% 0.183 314.4)
XYZxyz(16.5903, 9.3094, 35.0984)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FA2 #50A22F
analogous
#482FA2 #812FA2 #A22F89
triadic
#812FA2 #A2812F #2FA281
tetradic
#812FA2 #A2482F #50A22F #2F89A2
square
#812FA2 #A2482F #50A22F #2F89A2
split-complementary
#812FA2 #89A22F #2FA248
monochromatic
#351343 #5B2173 #812FA2 #A345C9 #BB75D7

Accessibility & contrast

On white

7.34
#812FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#812FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812FA2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FA2#FFFFFF#000000##FFFFFF
##812FA21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2A589F
Tritanopia (blue-blind)
#7E4765
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #812fa2;
/* rgb */ color: rgb(129, 47, 162);
/* oklch */ color: oklch(47.6% 0.183 314.4);
Tailwind
colors: {
  custom: {
    50: '#a96fbe',
    500: '#812fa2',
    950: '#000000',
  },
}
SCSS
$custom: #812fa2;
$custom-light: #a96fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#812fa2",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 282.783,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47647,
    "c": 0.18343,
    "h": 314.4
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

primary
#812FA2
secondary
#85BF6E
accent
#DE4974
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #812FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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