#812FB2#812FB2

#812FB2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.8% C 0.199 H 309.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#812FB2
RGBrgb(129, 47, 178)
HSLhsl(278, 58%, 44%)
HSVhsv(278, 74%, 70%)
CMYKcmyk(27.5%, 73.6%, 0%, 30.2%)
CIE-LABlab(37.69, 56.26, -54.25)
CIE-LCHlch(37.69, 78.16, 316.05°)
OKLaboklab(48.79% 0.1263 -0.1538)
OKLCHoklch(48.79% 0.199 309.4)
XYZxyz(18.1040, 9.9149, 43.0709)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812FB2 #60B22F
analogous
#402FB2 #812FB2 #B22FA2
triadic
#812FB2 #B2812F #2FB281
tetradic
#812FB2 #B2402F #60B22F #2FA2B2
square
#812FB2 #B2402F #60B22F #2FA2B2
split-complementary
#812FB2 #A2B22F #2FB240
monochromatic
#3B1551 #5E2282 #812FB2 #A04ED0 #BA7EDD

Accessibility & contrast

On white

7.04
#812FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#812FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812FB2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812FB2#FFFFFF#000000##FFFFFF
##812FB21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0C5AAF
Tritanopia (blue-blind)
#7A4D6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #812fb2;
/* rgb */ color: rgb(129, 47, 178);
/* oklch */ color: oklch(48.8% 0.199 309.4);
Tailwind
colors: {
  custom: {
    50: '#aa6fca',
    500: '#812fb2',
    950: '#000000',
  },
}
SCSS
$custom: #812fb2;
$custom-light: #aa6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#812fb2",
  "rgb": {
    "r": 129,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 277.557,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48794,
    "c": 0.19898,
    "h": 309.4
  },
  "luminance": 0.09915
}

Semantic roles & 50–950 ramp

primary
#812FB2
secondary
#94C677
accent
#E14680
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #812FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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