#511F70#511F70

#511F70 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.136 H 309.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#511F70
RGBrgb(81, 31, 112)
HSLhsl(277, 57%, 28%)
HSVhsv(277, 72%, 44%)
CMYKcmyk(27.7%, 72.3%, 0%, 56.1%)
CIE-LABlab(23.34, 38.09, -37.10)
CIE-LCHlch(23.34, 53.17, 315.76°)
OKLaboklab(35.59% 0.0863 -0.105)
OKLCHoklch(35.59% 0.136 309.4)
XYZxyz(6.8074, 3.8993, 15.7201)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F70 #3E701F
analogous
#281F70 #511F70 #701F66
triadic
#511F70 #70511F #1F7051
tetradic
#511F70 #70281F #3E701F #1F6670
square
#511F70 #70281F #3E701F #1F6670
split-complementary
#511F70 #66701F #1F7028
monochromatic
#110718 #2E1240 #511F70 #742CA0 #953FCA

Accessibility & contrast

On white

11.80
#511F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F70
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F70#FFFFFF#000000##FFFFFF
##511F701.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#10386E
Tritanopia (blue-blind)
#4D3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511f70;
/* rgb */ color: rgb(81, 31, 112);
/* oklch */ color: oklch(35.6% 0.136 309.4);
Tailwind
colors: {
  custom: {
    50: '#855f9a',
    500: '#511f70',
    950: '#000000',
  },
}
SCSS
$custom: #511f70;
$custom-light: #855f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f70",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 277.037,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35588,
    "c": 0.13591,
    "h": 309.4
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#511F70
secondary
#6AA447
accent
#E04882
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F70

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

Preview Lab → · Contrast checker → · Palette generator →

#511F70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva