#812FB7#812FB7

#812FB7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.204 H 308.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#812FB7
RGBrgb(129, 47, 183)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 72%)
CMYKcmyk(29.5%, 74.3%, 0%, 28.2%)
CIE-LABlab(38.06, 57.37, -56.61)
CIE-LCHlch(38.06, 80.60, 315.38°)
OKLaboklab(49.17% 0.1254 -0.1607)
OKLCHoklch(49.17% 0.204 308)
XYZxyz(18.6152, 10.1193, 45.7631)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FB7 #65B72F
analogous
#3D2FB7 #812FB7 #B72FA9
triadic
#812FB7 #B7812F #2FB781
tetradic
#812FB7 #B73D2F #65B72F #2FA9B7
square
#812FB7 #B73D2F #65B72F #2FA9B7
split-complementary
#812FB7 #A9B72F #2FB73D
monochromatic
#3C1656 #5F2286 #812FB7 #9F51D2 #BA82DF

Accessibility & contrast

On white

6.94
#812FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#812FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FB7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FB7#FFFFFF#000000##FFFFFF
##812FB71.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#784F71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812fb7;
/* rgb */ color: rgb(129, 47, 183);
/* oklch */ color: oklch(49.2% 0.204 308.0);
Tailwind
colors: {
  custom: {
    50: '#ab70cd',
    500: '#812fb7',
    950: '#000000',
  },
}
SCSS
$custom: #812fb7;
$custom-light: #ab70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#812fb7",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 276.176,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49169,
    "c": 0.20386,
    "h": 308
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#812FB7
secondary
#99C87A
accent
#E24584
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #812FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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