#511475#511475

#511475 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.154 H 308.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#511475
RGBrgb(81, 20, 117)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 46%)
CMYKcmyk(30.8%, 82.9%, 0%, 54.1%)
CIE-LABlab(22.07, 44.03, -42.37)
CIE-LCHlch(22.07, 61.11, 316.10°)
OKLaboklab(34.82% 0.0965 -0.1204)
OKLCHoklch(34.82% 0.154 308.7)
XYZxyz(6.8537, 3.5341, 17.1473)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511475 #387514
analogous
#211475 #511475 #751469
triadic
#511475 #755114 #147551
tetradic
#511475 #752114 #387514 #146975
square
#511475 #752114 #387514 #146975
split-complementary
#511475 #697514 #147521
monochromatic
#12041A #2D0B41 #511475 #751DA9 #9929DA

Accessibility & contrast

On white

12.30
#511475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511475
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511475#FFFFFF#000000##FFFFFF
##5114751.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#4B2D45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511475;
/* rgb */ color: rgb(81, 20, 117);
/* oklch */ color: oklch(34.8% 0.154 308.7);
Tailwind
colors: {
  custom: {
    50: '#865a9d',
    500: '#511475',
    950: '#000000',
  },
}
SCSS
$custom: #511475;
$custom-light: #865a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511475",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 277.732,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.15429,
    "h": 308.7
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#511475
secondary
#64AB3A
accent
#EE3A7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511475

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

Preview Lab → · Contrast checker → · Palette generator →

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