#812EB4#812EB4

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

Color values

HEX#812EB4
RGBrgb(129, 46, 180)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 71%)
CMYKcmyk(28.3%, 74.4%, 0%, 29.4%)
CIE-LABlab(37.69, 57.11, -55.43)
CIE-LCHlch(37.69, 79.59, 315.86°)
OKLaboklab(48.84% 0.1269 -0.1572)
OKLCHoklch(48.84% 0.202 308.9)
XYZxyz(18.2668, 9.9167, 44.1230)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB4 #61B42E
analogous
#3E2EB4 #812EB4 #B42EA4
triadic
#812EB4 #B4812E #2EB481
tetradic
#812EB4 #B43E2E #61B42E #2EA4B4
square
#812EB4 #B43E2E #61B42E #2EA4B4
split-complementary
#812EB4 #A4B42E #2EB43E
monochromatic
#3B1553 #5E2283 #812EB4 #9F4ED2 #BA7EDE

Accessibility & contrast

On white

7.04
#812EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #812EB4
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB4#FFFFFF#000000##FFFFFF
##812EB41.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#005AB1
Tritanopia (blue-blind)
#794E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812eb4;
/* rgb */ color: rgb(129, 46, 180);
/* oklch */ color: oklch(48.8% 0.202 308.9);
Tailwind
colors: {
  custom: {
    50: '#aa6fcb',
    500: '#812eb4',
    950: '#000000',
  },
}
SCSS
$custom: #812eb4;
$custom-light: #aa6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb4",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 277.164,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48843,
    "c": 0.20205,
    "h": 308.9
  },
  "luminance": 0.09916
}

Semantic roles & 50–950 ramp

primary
#812EB4
secondary
#95C777
accent
#E24581
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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