#812FBA#812FBA

#812FBA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.207 H 307.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#812FBA
RGBrgb(129, 47, 186)
HSLhsl(275, 60%, 46%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(30.6%, 74.7%, 0%, 27.1%)
CIE-LABlab(38.28, 58.03, -58.02)
CIE-LCHlch(38.28, 82.06, 315.01°)
OKLaboklab(49.4% 0.1248 -0.1648)
OKLCHoklch(49.4% 0.207 307.1)
XYZxyz(18.9308, 10.2456, 47.4252)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FBA #68BA2F
analogous
#3C2FBA #812FBA #BA2FAD
triadic
#812FBA #BA812F #2FBA81
tetradic
#812FBA #BA3C2F #68BA2F #2FADBA
square
#812FBA #BA3C2F #68BA2F #2FADBA
split-complementary
#812FBA #ADBA2F #2FBA3C
monochromatic
#3D1658 #5F2389 #812FBA #9F53D3 #BA84E0

Accessibility & contrast

On white

6.89
#812FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#812FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FBA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FBA#FFFFFF#000000##FFFFFF
##812FBA1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#775173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812fba;
/* rgb */ color: rgb(129, 47, 186);
/* oklch */ color: oklch(49.4% 0.207 307.1);
Tailwind
colors: {
  custom: {
    50: '#ab70d0',
    500: '#812fba',
    950: '#000000',
  },
}
SCSS
$custom: #812fba;
$custom-light: #ab70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#812fba",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 275.396,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49397,
    "c": 0.20679,
    "h": 307.1
  },
  "luminance": 0.10245
}

Semantic roles & 50–950 ramp

primary
#812FBA
secondary
#9BC97C
accent
#E34586
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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