#851F8B#851F8B

#851F8B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.183 H 325.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#851F8B
RGBrgb(133, 31, 139)
HSLhsl(297, 64%, 33%)
HSVhsv(297, 78%, 55%)
CMYKcmyk(4.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(33.63, 55.21, -37.15)
CIE-LCHlch(33.63, 66.55, 326.07°)
OKLaboklab(45.2% 0.151 -0.1034)
OKLCHoklch(45.2% 0.183 325.6)
XYZxyz(14.8227, 7.8316, 25.1520)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#851F8B #258B1F
analogous
#4F1F8B #851F8B #8B1F5B
triadic
#851F8B #8B851F #1F8B85
tetradic
#851F8B #8B4F1F #258B1F #1F5B8B
square
#851F8B #8B4F1F #258B1F #1F5B8B
split-complementary
#851F8B #5B8B1F #1F8B4F
monochromatic
#250927 #551459 #851F8B #B52ABD #D04DD7

Accessibility & contrast

On white

8.18
#851F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#851F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #851F8B
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##851F8B#FFFFFF#000000##FFFFFF
##851F8B1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#883254
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #851f8b;
/* rgb */ color: rgb(133, 31, 139);
/* oklch */ color: oklch(45.2% 0.183 325.6);
Tailwind
colors: {
  custom: {
    50: '#ac67ad',
    500: '#851f8b',
    950: '#000000',
  },
}
SCSS
$custom: #851f8b;
$custom-light: #ac67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#851f8b",
  "rgb": {
    "r": 133,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 296.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45202,
    "c": 0.18298,
    "h": 325.6
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#851F8B
secondary
#52BA4C
accent
#E7414A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #851F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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