#831271#831271

#831271 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.174 H 336.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#831271
RGBrgb(131, 18, 113)
HSLhsl(310, 76%, 29%)
HSVhsv(310, 86%, 51%)
CMYKcmyk(0%, 86.3%, 13.7%, 48.6%)
CIE-LABlab(30.52, 54.12, -25.77)
CIE-LCHlch(30.52, 59.95, 334.54°)
OKLaboklab(42.43% 0.1592 -0.0704)
OKLCHoklch(42.43% 0.174 336.1)
XYZxyz(12.5572, 6.4514, 16.2035)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831271 #128324
analogous
#5D1283 #831271 #831238
triadic
#831271 #718312 #127183
tetradic
#831271 #835D12 #128324 #123883
square
#831271 #835D12 #128324 #123883
split-complementary
#831271 #388312 #12835D
monochromatic
#1B0417 #4D0B43 #831271 #B9199F #E22DC5

Accessibility & contrast

On white

9.17
#831271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#831271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831271
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831271#FFFFFF#000000##FFFFFF
##8312711.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#8A1D43
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #831271;
/* rgb */ color: rgb(131, 18, 113);
/* oklch */ color: oklch(42.4% 0.174 336.1);
Tailwind
colors: {
  custom: {
    50: '#ab619a',
    500: '#831271',
    950: '#000000',
  },
}
SCSS
$custom: #831271;
$custom-light: #ab619a;
$custom-dark: #000000;
JSON
{
  "hex": "#831271",
  "rgb": {
    "r": 131,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 309.558,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42433,
    "c": 0.17405,
    "h": 336.1
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#831271
secondary
#38B84D
accent
#F25335
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #831271

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

Preview Lab → · Contrast checker → · Palette generator →

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