#812BC5#812BC5

#812BC5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.221 H 304.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#812BC5
RGBrgb(129, 43, 197)
HSLhsl(274, 64%, 47%)
HSVhsv(274, 78%, 77%)
CMYKcmyk(34.5%, 78.2%, 0%, 22.7%)
CIE-LABlab(38.60, 62.03, -63.95)
CIE-LCHlch(38.60, 89.09, 314.12°)
OKLaboklab(49.89% 0.1258 -0.1823)
OKLCHoklch(49.89% 0.221 304.6)
XYZxyz(19.9929, 10.4262, 53.7717)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812BC5 #6FC52B
analogous
#342BC5 #812BC5 #C52BBC
triadic
#812BC5 #C5812B #2BC581
tetradic
#812BC5 #C5342B #6FC52B #2BBCC5
square
#812BC5 #C5342B #6FC52B #2BBCC5
split-complementary
#812BC5 #BCC52B #2BC534
monochromatic
#3F1561 #602093 #812BC5 #9E54DA #BB86E5

Accessibility & contrast

On white

6.81
#812BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#812BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812BC5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812BC5#FFFFFF#000000##FFFFFF
##812BC51.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#745478
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #812bc5;
/* rgb */ color: rgb(129, 43, 197);
/* oklch */ color: oklch(49.9% 0.221 304.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ed8',
    500: '#812bc5',
    950: '#000000',
  },
}
SCSS
$custom: #812bc5;
$custom-light: #ac6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#812bc5",
  "rgb": {
    "r": 129,
    "g": 43,
    "b": 197
  },
  "hsl": {
    "h": 273.506,
    "s": 64.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49886,
    "c": 0.22147,
    "h": 304.6
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#812BC5
secondary
#A1CE7E
accent
#E7418A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #812BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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