#812CB7#812CB7

#812CB7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.207 H 308.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#812CB7
RGBrgb(129, 44, 183)
HSLhsl(277, 61%, 45%)
HSVhsv(277, 76%, 72%)
CMYKcmyk(29.5%, 76%, 0%, 28.2%)
CIE-LABlab(37.64, 58.56, -57.29)
CIE-LCHlch(37.64, 81.92, 315.63°)
OKLaboklab(48.88% 0.1282 -0.1627)
OKLCHoklch(48.88% 0.207 308.2)
XYZxyz(18.4994, 9.8877, 45.7245)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812CB7 #62B72C
analogous
#3C2CB7 #812CB7 #B72CA7
triadic
#812CB7 #B7812C #2CB781
tetradic
#812CB7 #B73C2C #62B72C #2CA7B7
square
#812CB7 #B73C2C #62B72C #2CA7B7
split-complementary
#812CB7 #A7B72C #2CB73C
monochromatic
#3B1454 #5E2086 #812CB7 #9F4CD4 #BA7EE0

Accessibility & contrast

On white

7.05
#812CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#812CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812CB7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812CB7#FFFFFF#000000##FFFFFF
##812CB71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #812cb7;
/* rgb */ color: rgb(129, 44, 183);
/* oklch */ color: oklch(48.9% 0.207 308.2);
Tailwind
colors: {
  custom: {
    50: '#ab6ecd',
    500: '#812cb7',
    950: '#000000',
  },
}
SCSS
$custom: #812cb7;
$custom-light: #ab6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#812cb7",
  "rgb": {
    "r": 129,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 276.691,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48876,
    "c": 0.2071,
    "h": 308.2
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#812CB7
secondary
#96C876
accent
#E44382
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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