#502E71#502E71

#502E71 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.7% C 0.114 H 305.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#502E71
RGBrgb(80, 46, 113)
HSLhsl(270, 42%, 31%)
HSVhsv(270, 59%, 44%)
CMYKcmyk(29.2%, 59.3%, 0%, 55.7%)
CIE-LABlab(26.31, 29.83, -32.97)
CIE-LCHlch(26.31, 44.47, 312.14°)
OKLaboklab(37.73% 0.0651 -0.093)
OKLCHoklch(37.73% 0.114 305)
XYZxyz(7.2653, 4.8518, 16.1733)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E71 #4F712E
analogous
#2E2E71 #502E71 #712E70
triadic
#502E71 #71502E #2E7150
tetradic
#502E71 #712E2E #4F712E #2E7071
square
#502E71 #712E2E #4F712E #2E7071
split-complementary
#502E71 #70712E #2E712E
monochromatic
#120B1A #311C46 #502E71 #6F409C #8D5DBD

Accessibility & contrast

On white

10.66
#502E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#502E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E71
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E71#FFFFFF#000000##FFFFFF
##502E711.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#4A3B4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #502e71;
/* rgb */ color: rgb(80, 46, 113);
/* oklch */ color: oklch(37.7% 0.114 305.0);
Tailwind
colors: {
  custom: {
    50: '#83689a',
    500: '#502e71',
    950: '#000000',
  },
}
SCSS
$custom: #502e71;
$custom-light: #83689a;
$custom-dark: #000000;
JSON
{
  "hex": "#502e71",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 270.448,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37734,
    "c": 0.11351,
    "h": 305
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#502E71
secondary
#7DA258
accent
#D25693
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #502E71

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

Preview Lab → · Contrast checker → · Palette generator →

#502E71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva