#812FBB#812FBB

#812FBB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.208 H 306.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#812FBB
RGBrgb(129, 47, 187)
HSLhsl(275, 60%, 46%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(31%, 74.9%, 0%, 26.7%)
CIE-LABlab(38.35, 58.26, -58.49)
CIE-LCHlch(38.35, 82.55, 314.89°)
OKLaboklab(49.47% 0.1247 -0.1662)
OKLCHoklch(49.47% 0.208 306.9)
XYZxyz(19.0375, 10.2882, 47.9870)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FBB #69BB2F
analogous
#3B2FBB #812FBB #BB2FAF
triadic
#812FBB #BB812F #2FBB81
tetradic
#812FBB #BB3B2F #69BB2F #2FAFBB
square
#812FBB #BB3B2F #69BB2F #2FAFBB
split-complementary
#812FBB #AFBB2F #2FBB3B
monochromatic
#3E1659 #5F238A #812FBB #9F53D4 #BA84E0

Accessibility & contrast

On white

6.87
#812FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#812FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #812FBB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FBB#FFFFFF#000000##FFFFFF
##812FBB1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#775173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #812fbb;
/* rgb */ color: rgb(129, 47, 187);
/* oklch */ color: oklch(49.5% 0.208 306.9);
Tailwind
colors: {
  custom: {
    50: '#ab70d0',
    500: '#812fbb',
    950: '#000000',
  },
}
SCSS
$custom: #812fbb;
$custom-light: #ab70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#812fbb",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 275.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49474,
    "c": 0.20777,
    "h": 306.9
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #812FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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