#812EB5#812EB5

#812EB5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.203 H 308.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#812EB5
RGBrgb(129, 46, 181)
HSLhsl(277, 59%, 45%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(28.7%, 74.6%, 0%, 29%)
CIE-LABlab(37.77, 57.33, -55.90)
CIE-LCHlch(37.77, 80.07, 315.72°)
OKLaboklab(48.92% 0.1267 -0.1586)
OKLCHoklch(48.92% 0.203 308.6)
XYZxyz(18.3690, 9.9576, 44.6614)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB5 #62B52E
analogous
#3E2EB5 #812EB5 #B52EA6
triadic
#812EB5 #B5812E #2EB581
tetradic
#812EB5 #B53E2E #62B52E #2EA6B5
square
#812EB5 #B53E2E #62B52E #2EA6B5
split-complementary
#812EB5 #A6B52E #2EB53E
monochromatic
#3B1553 #5E2284 #812EB5 #9F4ED2 #BA7FDE

Accessibility & contrast

On white

7.02
#812EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#812EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EB5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB5#FFFFFF#000000##FFFFFF
##812EB51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#794E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812eb5;
/* rgb */ color: rgb(129, 46, 181);
/* oklch */ color: oklch(48.9% 0.203 308.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fcc',
    500: '#812eb5',
    950: '#000000',
  },
}
SCSS
$custom: #812eb5;
$custom-light: #aa6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb5",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 276.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48918,
    "c": 0.20302,
    "h": 308.6
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#812EB5
secondary
#96C778
accent
#E34582
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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