#812AB8#812AB8

#812AB8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.210 H 308.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#812AB8
RGBrgb(129, 42, 184)
HSLhsl(277, 63%, 44%)
HSVhsv(277, 77%, 72%)
CMYKcmyk(29.9%, 77.2%, 0%, 27.8%)
CIE-LABlab(37.45, 59.53, -58.18)
CIE-LCHlch(37.45, 83.24, 315.66°)
OKLaboklab(48.77% 0.1297 -0.1653)
OKLCHoklch(48.77% 0.21 308.1)
XYZxyz(18.5311, 9.7840, 46.2504)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812AB8 #61B82A
analogous
#3A2AB8 #812AB8 #B82AA8
triadic
#812AB8 #B8812A #2AB881
tetradic
#812AB8 #B83A2A #61B82A #2AA8B8
square
#812AB8 #B83A2A #61B82A #2AA8B8
split-complementary
#812AB8 #A8B82A #2AB83A
monochromatic
#3B1354 #5E1F86 #812AB8 #9F4AD6 #BA7BE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812AB8#FFFFFF#000000##FFFFFF
##812AB81.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)
#0055BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#784D70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812ab8;
/* rgb */ color: rgb(129, 42, 184);
/* oklch */ color: oklch(48.8% 0.210 308.1);
Tailwind
colors: {
  custom: {
    50: '#ab6dce',
    500: '#812ab8',
    950: '#000000',
  },
}
SCSS
$custom: #812ab8;
$custom-light: #ab6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#812ab8",
  "rgb": {
    "r": 129,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 276.761,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48767,
    "c": 0.21011,
    "h": 308.1
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#812AB8
secondary
#95C975
accent
#E64281
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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