#501262#501262

#501262 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.137 H 317.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#501262
RGBrgb(80, 18, 98)
HSLhsl(287, 69%, 23%)
HSVhsv(287, 82%, 38%)
CMYKcmyk(18.4%, 81.6%, 0%, 61.6%)
CIE-LABlab(20.12, 40.33, -33.16)
CIE-LCHlch(20.12, 52.21, 320.57°)
OKLaboklab(32.94% 0.1009 -0.0934)
OKLCHoklch(32.94% 0.137 317.2)
XYZxyz(5.7289, 3.0202, 11.8341)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501262 #246212
analogous
#281262 #501262 #62124C
triadic
#501262 #625012 #126250
tetradic
#501262 #622812 #246212 #124C62
square
#501262 #622812 #246212 #124C62
split-complementary
#501262 #4C6212 #126228
monochromatic
#15051A #26092E #501262 #7A1B96 #A425C9

Accessibility & contrast

On white

13.09
#501262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#501262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501262
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501262#FFFFFF#000000##FFFFFF
##5012621.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#143260
Tritanopia (blue-blind)
#4F243A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #501262;
/* rgb */ color: rgb(80, 18, 98);
/* oklch */ color: oklch(32.9% 0.137 317.2);
Tailwind
colors: {
  custom: {
    50: '#84588f',
    500: '#501262',
    950: '#000000',
  },
}
SCSS
$custom: #501262;
$custom-light: #84588f;
$custom-dark: #000000;
JSON
{
  "hex": "#501262",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 286.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32939,
    "c": 0.13748,
    "h": 317.2
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#501262
secondary
#4C9A36
accent
#EC3C64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501262

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

Preview Lab → · Contrast checker → · Palette generator →

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