#812AB2#812AB2

#812AB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.204 H 309.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#812AB2
RGBrgb(129, 42, 178)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(27.5%, 76.4%, 0%, 30.2%)
CIE-LABlab(37.00, 58.23, -55.37)
CIE-LCHlch(37.00, 80.35, 316.45°)
OKLaboklab(48.31% 0.1309 -0.157)
OKLCHoklch(48.31% 0.204 309.8)
XYZxyz(17.9155, 9.5378, 43.0081)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB2 #5BB22A
analogous
#3D2AB2 #812AB2 #B22A9F
triadic
#812AB2 #B2812A #2AB281
tetradic
#812AB2 #B23D2A #5BB22A #2A9FB2
square
#812AB2 #B23D2A #5BB22A #2A9FB2
split-complementary
#812AB2 #9FB22A #2AB23D
monochromatic
#39134F #5D1E80 #812AB2 #A046D3 #BA77DF

Accessibility & contrast

On white

7.22
#812AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#812AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812AB2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812AB2#FFFFFF#000000##FFFFFF
##812AB21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#7A4B6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #812ab2;
/* rgb */ color: rgb(129, 42, 178);
/* oklch */ color: oklch(48.3% 0.204 309.8);
Tailwind
colors: {
  custom: {
    50: '#aa6dca',
    500: '#812ab2',
    950: '#000000',
  },
}
SCSS
$custom: #812ab2;
$custom-light: #aa6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab2",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 278.382,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48307,
    "c": 0.20445,
    "h": 309.8
  },
  "luminance": 0.09537
}

Semantic roles & 50–950 ramp

primary
#812AB2
secondary
#90C771
accent
#E5437D
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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