#812EB3#812EB3

#812EB3 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.201 H 309.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#812EB3
RGBrgb(129, 46, 179)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(27.9%, 74.3%, 0%, 29.8%)
CIE-LABlab(37.62, 56.89, -54.95)
CIE-LCHlch(37.62, 79.10, 315.99°)
OKLaboklab(48.77% 0.1271 -0.1558)
OKLCHoklch(48.77% 0.201 309.2)
XYZxyz(18.1653, 9.8761, 43.5884)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB3 #60B32E
analogous
#3F2EB3 #812EB3 #B32EA3
triadic
#812EB3 #B3812E #2EB381
tetradic
#812EB3 #B33F2E #60B32E #2EA3B3
square
#812EB3 #B33F2E #60B32E #2EA3B3
split-complementary
#812EB3 #A3B32E #2EB33F
monochromatic
#3B1552 #5E2182 #812EB3 #A04DD1 #BA7EDE

Accessibility & contrast

On white

7.06
#812EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812EB3
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB3#FFFFFF#000000##FFFFFF
##812EB31.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#055AB0
Tritanopia (blue-blind)
#7A4D6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812eb3;
/* rgb */ color: rgb(129, 46, 179);
/* oklch */ color: oklch(48.8% 0.201 309.2);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#812eb3',
    950: '#000000',
  },
}
SCSS
$custom: #812eb3;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb3",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 277.444,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48768,
    "c": 0.20109,
    "h": 309.2
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#812EB3
secondary
#94C676
accent
#E24680
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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