#812EB2#812EB2

#812EB2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.200 H 309.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#812EB2
RGBrgb(129, 46, 178)
HSLhsl(278, 59%, 44%)
HSVhsv(278, 74%, 70%)
CMYKcmyk(27.5%, 74.2%, 0%, 30.2%)
CIE-LABlab(37.55, 56.67, -54.48)
CIE-LCHlch(37.55, 78.61, 316.13°)
OKLaboklab(48.69% 0.1273 -0.1544)
OKLCHoklch(48.69% 0.2 309.5)
XYZxyz(18.0645, 9.8358, 43.0577)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB2 #5FB22E
analogous
#3F2EB2 #812EB2 #B22EA1
triadic
#812EB2 #B2812E #2EB281
tetradic
#812EB2 #B23F2E #5FB22E #2EA1B2
square
#812EB2 #B23F2E #5FB22E #2EA1B2
split-complementary
#812EB2 #A1B22E #2EB23F
monochromatic
#3B1551 #5E2181 #812EB2 #A04CD1 #BA7DDD

Accessibility & contrast

On white

7.08
#812EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#812EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812EB2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB2#FFFFFF#000000##FFFFFF
##812EB21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0959AF
Tritanopia (blue-blind)
#7A4D6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #812eb2;
/* rgb */ color: rgb(129, 46, 178);
/* oklch */ color: oklch(48.7% 0.200 309.5);
Tailwind
colors: {
  custom: {
    50: '#aa6fca',
    500: '#812eb2',
    950: '#000000',
  },
}
SCSS
$custom: #812eb2;
$custom-light: #aa6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb2",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 277.727,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48693,
    "c": 0.20011,
    "h": 309.5
  },
  "luminance": 0.09835
}

Semantic roles & 50–950 ramp

primary
#812EB2
secondary
#94C676
accent
#E24680
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #812EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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