#812895#812895

#812895 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.180 H 319.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#812895
RGBrgb(129, 40, 149)
HSLhsl(289, 58%, 37%)
HSVhsv(289, 73%, 58%)
CMYKcmyk(13.4%, 73.2%, 0%, 41.6%)
CIE-LABlab(34.71, 53.02, -41.60)
CIE-LCHlch(34.71, 67.39, 321.89°)
OKLaboklab(46.05% 0.1369 -0.1166)
OKLCHoklch(46.05% 0.18 319.6)
XYZxyz(15.2362, 8.3554, 29.2381)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812895 #3C9528
analogous
#4B2895 #812895 #952873
triadic
#812895 #958128 #289581
tetradic
#812895 #954B28 #3C9528 #287395
square
#812895 #954B28 #3C9528 #287395
split-complementary
#812895 #739528 #28954B
monochromatic
#2D0E35 #571B65 #812895 #AB35C5 #C062D5

Accessibility & contrast

On white

7.86
#812895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#812895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812895
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812895#FFFFFF#000000##FFFFFF
##8128951.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#315592
Tritanopia (blue-blind)
#813D5C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #812895;
/* rgb */ color: rgb(129, 40, 149);
/* oklch */ color: oklch(46.0% 0.180 319.6);
Tailwind
colors: {
  custom: {
    50: '#a96bb5',
    500: '#812895',
    950: '#000000',
  },
}
SCSS
$custom: #812895;
$custom-light: #a96bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#812895",
  "rgb": {
    "r": 129,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 288.991,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46046,
    "c": 0.17983,
    "h": 319.6
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#812895
secondary
#6FBB5E
accent
#E14763
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812895

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

Preview Lab → · Contrast checker → · Palette generator →

#812895 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva