#851F8D#851F8D

#851F8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.185 H 324.8°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#851F8D
RGBrgb(133, 31, 141)
HSLhsl(296, 64%, 34%)
HSVhsv(296, 78%, 55%)
CMYKcmyk(5.7%, 78%, 0%, 44.7%)
CIE-LABlab(33.75, 55.57, -38.18)
CIE-LCHlch(33.75, 67.42, 325.50°)
OKLaboklab(45.33% 0.1509 -0.1064)
OKLCHoklch(45.33% 0.185 324.8)
XYZxyz(14.9702, 7.8906, 25.9287)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#851F8D #278D1F
analogous
#4E1F8D #851F8D #8D1F5E
triadic
#851F8D #8D851F #1F8D85
tetradic
#851F8D #8D4E1F #278D1F #1F5E8D
square
#851F8D #8D4E1F #278D1F #1F5E8D
split-complementary
#851F8D #5E8D1F #1F8D4E
monochromatic
#260929 #56145B #851F8D #B42ABF #CE4ED8

Accessibility & contrast

On white

8.15
#851F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#851F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #851F8D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##851F8D#FFFFFF#000000##FFFFFF
##851F8D1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#883355
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #851f8d;
/* rgb */ color: rgb(133, 31, 141);
/* oklch */ color: oklch(45.3% 0.185 324.8);
Tailwind
colors: {
  custom: {
    50: '#ac67af',
    500: '#851f8d',
    950: '#000000',
  },
}
SCSS
$custom: #851f8d;
$custom-light: #ac67af;
$custom-dark: #000000;
JSON
{
  "hex": "#851f8d",
  "rgb": {
    "r": 133,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 295.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.18462,
    "h": 324.8
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#851F8D
secondary
#55BB4D
accent
#E7414D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #851F8D

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

Preview Lab → · Contrast checker → · Palette generator →

#851F8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva