#511675#511675

#511675 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.152 H 308.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#511675
RGBrgb(81, 22, 117)
HSLhsl(277, 68%, 27%)
HSVhsv(277, 81%, 46%)
CMYKcmyk(30.8%, 81.2%, 0%, 54.1%)
CIE-LABlab(22.33, 43.27, -41.95)
CIE-LCHlch(22.33, 60.27, 315.89°)
OKLaboklab(35% 0.0947 -0.1192)
OKLCHoklch(35% 0.152 308.5)
XYZxyz(6.8905, 3.6076, 17.1595)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511675 #3A7516
analogous
#221675 #511675 #75166A
triadic
#511675 #755116 #167551
tetradic
#511675 #752216 #3A7516 #166A75
square
#511675 #752216 #3A7516 #166A75
split-complementary
#511675 #6A7516 #167522
monochromatic
#12051A #2D0C41 #511675 #7520A9 #972ED8

Accessibility & contrast

On white

12.20
#511675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511675
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511675#FFFFFF#000000##FFFFFF
##5116751.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511675;
/* rgb */ color: rgb(81, 22, 117);
/* oklch */ color: oklch(35.0% 0.152 308.5);
Tailwind
colors: {
  custom: {
    50: '#865b9d',
    500: '#511675',
    950: '#000000',
  },
}
SCSS
$custom: #511675;
$custom-light: #865b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511675",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 277.263,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35,
    "c": 0.15223,
    "h": 308.5
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#511675
secondary
#66AB3C
accent
#EB3D7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511675

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

Preview Lab → · Contrast checker → · Palette generator →

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