#511570#511570

#511570 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.148 H 310.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#511570
RGBrgb(81, 21, 112)
HSLhsl(280, 68%, 26%)
HSVhsv(280, 81%, 44%)
CMYKcmyk(27.7%, 81.2%, 0%, 56.1%)
CIE-LABlab(21.78, 42.50, -39.61)
CIE-LCHlch(21.78, 58.10, 317.02°)
OKLaboklab(34.49% 0.0968 -0.1123)
OKLCHoklch(34.49% 0.148 310.8)
XYZxyz(6.5856, 3.4557, 15.6462)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511570 #347015
analogous
#231570 #511570 #701561
triadic
#511570 #705115 #157051
tetradic
#511570 #702315 #347015 #156170
square
#511570 #702315 #347015 #156170
split-complementary
#511570 #617015 #157023
monochromatic
#13051A #2C0B3C #511570 #761FA4 #9B29D7

Accessibility & contrast

On white

12.42
#511570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511570
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511570#FFFFFF#000000##FFFFFF
##5115701.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4D2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511570;
/* rgb */ color: rgb(81, 21, 112);
/* oklch */ color: oklch(34.5% 0.148 310.8);
Tailwind
colors: {
  custom: {
    50: '#865a9a',
    500: '#511570',
    950: '#000000',
  },
}
SCSS
$custom: #511570;
$custom-light: #865a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511570",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 279.56,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.14827,
    "h": 310.8
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#511570
secondary
#5FA63B
accent
#EB3D78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511570

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

Preview Lab → · Contrast checker → · Palette generator →

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