#812BB2#812BB2

#812BB2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.203 H 309.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#812BB2
RGBrgb(129, 43, 178)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(27.5%, 75.8%, 0%, 30.2%)
CIE-LABlab(37.13, 57.85, -55.15)
CIE-LCHlch(37.13, 79.93, 316.37°)
OKLaboklab(48.4% 0.13 -0.1564)
OKLCHoklch(48.4% 0.203 309.7)
XYZxyz(17.9514, 9.6096, 43.0200)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB2 #5CB22B
analogous
#3D2BB2 #812BB2 #B22B9F
triadic
#812BB2 #B2812B #2BB281
tetradic
#812BB2 #B23D2B #5CB22B #2B9FB2
square
#812BB2 #B23D2B #5CB22B #2B9FB2
split-complementary
#812BB2 #9FB22B #2BB23D
monochromatic
#3A134F #5D1F81 #812BB2 #A048D3 #BA79DF

Accessibility & contrast

On white

7.19
#812BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#812BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812BB2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB2#FFFFFF#000000##FFFFFF
##812BB21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812bb2;
/* rgb */ color: rgb(129, 43, 178);
/* oklch */ color: oklch(48.4% 0.203 309.7);
Tailwind
colors: {
  custom: {
    50: '#aa6eca',
    500: '#812bb2',
    950: '#000000',
  },
}
SCSS
$custom: #812bb2;
$custom-light: #aa6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb2",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 278.222,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48401,
    "c": 0.20339,
    "h": 309.7
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#812BB2
secondary
#91C772
accent
#E4447E
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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