#812BB4#812BB4

#812BB4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.205 H 309.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#812BB4
RGBrgb(129, 43, 180)
HSLhsl(278, 61%, 44%)
HSVhsv(278, 76%, 71%)
CMYKcmyk(28.3%, 76.1%, 0%, 29.4%)
CIE-LABlab(37.28, 58.29, -56.09)
CIE-LCHlch(37.28, 80.89, 316.10°)
OKLaboklab(48.55% 0.1297 -0.1592)
OKLCHoklch(48.55% 0.205 309.2)
XYZxyz(18.1537, 9.6905, 44.0853)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB4 #5EB42B
analogous
#3C2BB4 #812BB4 #B42BA2
triadic
#812BB4 #B4812B #2BB481
tetradic
#812BB4 #B43C2B #5EB42B #2BA2B4
square
#812BB4 #B43C2B #5EB42B #2BA2B4
split-complementary
#812BB4 #A2B42B #2BB43C
monochromatic
#3A1351 #5E1F83 #812BB4 #A049D3 #BA7ADF

Accessibility & contrast

On white

7.15
#812BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#812BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB4#FFFFFF#000000##FFFFFF
##812BB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#794C6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb4;
/* rgb */ color: rgb(129, 43, 180);
/* oklch */ color: oklch(48.6% 0.205 309.2);
Tailwind
colors: {
  custom: {
    50: '#ab6ecb',
    500: '#812bb4',
    950: '#000000',
  },
}
SCSS
$custom: #812bb4;
$custom-light: #ab6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb4",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 277.664,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48552,
    "c": 0.2053,
    "h": 309.2
  },
  "luminance": 0.0969
}

Semantic roles & 50–950 ramp

primary
#812BB4
secondary
#93C773
accent
#E5437F
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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