#501275#501275

#501275 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.156 H 308.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#501275
RGBrgb(80, 18, 117)
HSLhsl(278, 73%, 26%)
HSVhsv(278, 85%, 46%)
CMYKcmyk(31.6%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.66, 44.56, -43.04)
CIE-LCHlch(21.66, 61.95, 316.00°)
OKLaboklab(34.5% 0.0967 -0.1224)
OKLCHoklch(34.5% 0.156 308.3)
XYZxyz(6.7348, 3.4226, 17.1320)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501275 #377512
analogous
#1F1275 #501275 #751269
triadic
#501275 #755012 #127550
tetradic
#501275 #751F12 #377512 #126975
square
#501275 #751F12 #377512 #126975
split-complementary
#501275 #697512 #12751F
monochromatic
#12041B #2C0A40 #501275 #741AAA #9824DD

Accessibility & contrast

On white

12.47
#501275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#501275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501275
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501275#FFFFFF#000000##FFFFFF
##5012751.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501275;
/* rgb */ color: rgb(80, 18, 117);
/* oklch */ color: oklch(34.5% 0.156 308.3);
Tailwind
colors: {
  custom: {
    50: '#86599e',
    500: '#501275',
    950: '#000000',
  },
}
SCSS
$custom: #501275;
$custom-light: #86599e;
$custom-dark: #000000;
JSON
{
  "hex": "#501275",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 277.576,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34501,
    "c": 0.15594,
    "h": 308.3
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#501275
secondary
#63AC37
accent
#F0387D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #501275

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

Preview Lab → · Contrast checker → · Palette generator →

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