#511275#511275

#511275 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.156 H 308.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#511275
RGBrgb(81, 18, 117)
HSLhsl(278, 73%, 26%)
HSVhsv(278, 85%, 46%)
CMYKcmyk(30.8%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.82, 44.74, -42.77)
CIE-LCHlch(21.82, 61.90, 316.29°)
OKLaboklab(34.65% 0.0981 -0.1215)
OKLCHoklch(34.65% 0.156 308.9)
XYZxyz(6.8199, 3.4664, 17.1360)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511275 #367512
analogous
#201275 #511275 #751268
triadic
#511275 #755112 #127551
tetradic
#511275 #752012 #367512 #126875
square
#511275 #752012 #367512 #126875
split-complementary
#511275 #687512 #127520
monochromatic
#12041B #2C0A40 #511275 #761AAA #9A24DD

Accessibility & contrast

On white

12.40
#511275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511275
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511275#FFFFFF#000000##FFFFFF
##5112751.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#4B2C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511275;
/* rgb */ color: rgb(81, 18, 117);
/* oklch */ color: oklch(34.6% 0.156 308.9);
Tailwind
colors: {
  custom: {
    50: '#86599d',
    500: '#511275',
    950: '#000000',
  },
}
SCSS
$custom: #511275;
$custom-light: #86599d;
$custom-dark: #000000;
JSON
{
  "hex": "#511275",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 278.182,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34646,
    "c": 0.15622,
    "h": 308.9
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#511275
secondary
#62AC37
accent
#F0387B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511275

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

Preview Lab → · Contrast checker → · Palette generator →

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