#812BB7#812BB7

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

Color values

HEX#812BB7
RGBrgb(129, 43, 183)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 72%)
CMYKcmyk(29.5%, 76.5%, 0%, 28.2%)
CIE-LABlab(37.51, 58.94, -57.50)
CIE-LCHlch(37.51, 82.34, 315.71°)
OKLaboklab(48.78% 0.1291 -0.1633)
OKLCHoklch(48.78% 0.208 308.3)
XYZxyz(18.4626, 9.8141, 45.7123)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BB7 #61B72B
analogous
#3B2BB7 #812BB7 #B72BA7
triadic
#812BB7 #B7812B #2BB781
tetradic
#812BB7 #B73B2B #61B72B #2BA7B7
square
#812BB7 #B73B2B #61B72B #2BA7B7
split-complementary
#812BB7 #A7B72B #2BB73B
monochromatic
#3B1454 #5E1F85 #812BB7 #9F4BD5 #BA7CE0

Accessibility & contrast

On white

7.09
#812BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812BB7
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BB7#FFFFFF#000000##FFFFFF
##812BB71.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#784D70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812bb7;
/* rgb */ color: rgb(129, 43, 183);
/* oklch */ color: oklch(48.8% 0.208 308.3);
Tailwind
colors: {
  custom: {
    50: '#ab6ecd',
    500: '#812bb7',
    950: '#000000',
  },
}
SCSS
$custom: #812bb7;
$custom-light: #ab6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#812bb7",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 276.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48782,
    "c": 0.20814,
    "h": 308.3
  },
  "luminance": 0.09814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #812BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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