#812EB7#812EB7

#812EB7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.205 H 308.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#812EB7
RGBrgb(129, 46, 183)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 72%)
CMYKcmyk(29.5%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.91, 57.77, -56.84)
CIE-LCHlch(37.91, 81.05, 315.46°)
OKLaboklab(49.07% 0.1263 -0.1614)
OKLCHoklch(49.07% 0.205 308.1)
XYZxyz(18.5757, 10.0403, 45.7500)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812EB7 #64B72E
analogous
#3C2EB7 #812EB7 #B72EA9
triadic
#812EB7 #B7812E #2EB781
tetradic
#812EB7 #B73C2E #64B72E #2EA9B7
square
#812EB7 #B73C2E #64B72E #2EA9B7
split-complementary
#812EB7 #A9B72E #2EB73C
monochromatic
#3C1555 #5F2286 #812EB7 #9F4FD3 #BA80DF

Accessibility & contrast

On white

6.98
#812EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#812EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812EB7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812EB7#FFFFFF#000000##FFFFFF
##812EB71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#784F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812eb7;
/* rgb */ color: rgb(129, 46, 183);
/* oklch */ color: oklch(49.1% 0.205 308.1);
Tailwind
colors: {
  custom: {
    50: '#ab6fcd',
    500: '#812eb7',
    950: '#000000',
  },
}
SCSS
$custom: #812eb7;
$custom-light: #ab6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#812eb7",
  "rgb": {
    "r": 129,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 276.35,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.20496,
    "h": 308.1
  },
  "luminance": 0.1004
}

Semantic roles & 50–950 ramp

primary
#812EB7
secondary
#98C879
accent
#E34583
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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