#812FB5#812FB5

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

Color values

HEX#812FB5
RGBrgb(129, 47, 181)
HSLhsl(277, 59%, 45%)
HSVhsv(277, 74%, 71%)
CMYKcmyk(28.7%, 74%, 0%, 29%)
CIE-LABlab(37.91, 56.92, -55.67)
CIE-LCHlch(37.91, 79.62, 315.64°)
OKLaboklab(49.02% 0.1258 -0.1579)
OKLCHoklch(49.02% 0.202 308.5)
XYZxyz(18.4085, 10.0367, 44.6746)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FB5 #63B52F
analogous
#3E2FB5 #812FB5 #B52FA6
triadic
#812FB5 #B5812F #2FB581
tetradic
#812FB5 #B53E2F #63B52F #2FA6B5
square
#812FB5 #B53E2F #63B52F #2FA6B5
split-complementary
#812FB5 #A6B52F #2FB53E
monochromatic
#3C1654 #5E2284 #812FB5 #9F50D1 #BA80DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##812FB5#FFFFFF#000000##FFFFFF
##812FB51.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)
#0056B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#794F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812fb5;
/* rgb */ color: rgb(129, 47, 181);
/* oklch */ color: oklch(49.0% 0.202 308.5);
Tailwind
colors: {
  custom: {
    50: '#aa70cc',
    500: '#812fb5',
    950: '#000000',
  },
}
SCSS
$custom: #812fb5;
$custom-light: #aa70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#812fb5",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 276.716,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49018,
    "c": 0.20191,
    "h": 308.5
  },
  "luminance": 0.10036
}

Semantic roles & 50–950 ramp

primary
#812FB5
secondary
#97C779
accent
#E24682
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #812FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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