#511870#511870

#511870 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 310.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#511870
RGBrgb(81, 24, 112)
HSLhsl(279, 65%, 27%)
HSVhsv(279, 79%, 44%)
CMYKcmyk(27.7%, 78.6%, 0%, 56.1%)
CIE-LABlab(22.20, 41.29, -38.93)
CIE-LCHlch(22.20, 56.75, 316.69°)
OKLaboklab(34.78% 0.0939 -0.1103)
OKLCHoklch(34.78% 0.145 310.4)
XYZxyz(6.6440, 3.5726, 15.6657)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511870 #377018
analogous
#251870 #511870 #701863
triadic
#511870 #705118 #187051
tetradic
#511870 #702518 #377018 #186370
square
#511870 #702518 #377018 #186370
split-complementary
#511870 #637018 #187025
monochromatic
#120519 #2D0D3E #511870 #7523A2 #9930D3

Accessibility & contrast

On white

12.25
#511870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511870
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511870#FFFFFF#000000##FFFFFF
##5118701.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#04366E
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511870;
/* rgb */ color: rgb(81, 24, 112);
/* oklch */ color: oklch(34.8% 0.145 310.4);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#511870',
    950: '#000000',
  },
}
SCSS
$custom: #511870;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511870",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 278.864,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34785,
    "c": 0.14489,
    "h": 310.4
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#511870
secondary
#63A53E
accent
#E8407B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511870

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

Preview Lab → · Contrast checker → · Palette generator →

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