#831874#831874

#831874 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.171 H 334.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#831874
RGBrgb(131, 24, 116)
HSLhsl(308, 69%, 30%)
HSVhsv(308, 82%, 51%)
CMYKcmyk(0%, 81.7%, 11.5%, 48.6%)
CIE-LABlab(31.21, 53.06, -26.60)
CIE-LCHlch(31.21, 59.36, 333.37°)
OKLaboklab(42.98% 0.1548 -0.0728)
OKLCHoklch(42.98% 0.171 334.8)
XYZxyz(12.8393, 6.7407, 17.1445)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#831874 #188327
analogous
#5C1883 #831874 #83183F
triadic
#831874 #748318 #187483
tetradic
#831874 #835C18 #188327 #183F83
square
#831874 #835C18 #188327 #183F83
split-complementary
#831874 #3F8318 #18835C
monochromatic
#1C0518 #4F0F46 #831874 #B721A2 #DB3AC4

Accessibility & contrast

On white

8.94
#831874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#831874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #831874
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##831874#FFFFFF#000000##FFFFFF
##8318741.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174076
Deuteranopia (green-blind)
#404F72
Tritanopia (blue-blind)
#8A2346
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #831874;
/* rgb */ color: rgb(131, 24, 116);
/* oklch */ color: oklch(43.0% 0.171 334.8);
Tailwind
colors: {
  custom: {
    50: '#ab639c',
    500: '#831874',
    950: '#000000',
  },
}
SCSS
$custom: #831874;
$custom-light: #ab639c;
$custom-dark: #000000;
JSON
{
  "hex": "#831874",
  "rgb": {
    "r": 131,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 308.411,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.17111,
    "h": 334.8
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#831874
secondary
#40B750
accent
#EC553C
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #831874

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

Preview Lab → · Contrast checker → · Palette generator →

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