#851F9D#851F9D

#851F9D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.198 H 318.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#851F9D
RGBrgb(133, 31, 157)
HSLhsl(289, 67%, 37%)
HSVhsv(289, 80%, 62%)
CMYKcmyk(15.3%, 80.3%, 0%, 38.4%)
CIE-LABlab(34.81, 58.51, -46.28)
CIE-LCHlch(34.81, 74.60, 321.65°)
OKLaboklab(46.41% 0.1491 -0.1301)
OKLCHoklch(46.41% 0.198 318.9)
XYZxyz(16.2478, 8.4016, 32.6576)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#851F9D #379D1F
analogous
#461F9D #851F9D #9D1F76
triadic
#851F9D #9D851F #1F9D85
tetradic
#851F9D #9D461F #379D1F #1F769D
square
#851F9D #9D461F #379D1F #1F769D
split-complementary
#851F9D #769D1F #1F9D46
monochromatic
#2E0B37 #5A156A #851F9D #B029D0 #C558DE

Accessibility & contrast

On white

7.84
#851F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#851F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #851F9D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##851F9D#FFFFFF#000000##FFFFFF
##851F9D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#28559A
Tritanopia (blue-blind)
#853B5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #851f9d;
/* rgb */ color: rgb(133, 31, 157);
/* oklch */ color: oklch(46.4% 0.198 318.9);
Tailwind
colors: {
  custom: {
    50: '#ad68bb',
    500: '#851f9d',
    950: '#000000',
  },
}
SCSS
$custom: #851f9d;
$custom-light: #ad68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#851f9d",
  "rgb": {
    "r": 133,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 288.571,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46411,
    "c": 0.19792,
    "h": 318.9
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#851F9D
secondary
#6AC256
accent
#EA3E5F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #851F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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