#502E7C#502E7C

#502E7C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.128 H 300.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#502E7C
RGBrgb(80, 46, 124)
HSLhsl(266, 46%, 33%)
HSVhsv(266, 63%, 49%)
CMYKcmyk(35.5%, 62.9%, 0%, 51.4%)
CIE-LABlab(27.06, 32.81, -38.75)
CIE-LCHlch(27.06, 50.78, 310.26°)
OKLaboklab(38.52% 0.065 -0.1099)
OKLCHoklch(38.52% 0.128 300.6)
XYZxyz(7.9225, 5.1147, 19.6347)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502E7C #5A7C2E
analogous
#2E337C #502E7C #772E7C
triadic
#502E7C #7C502E #2E7C50
tetradic
#502E7C #7C2E33 #5A7C2E #2E7C77
square
#502E7C #7C2E33 #5A7C2E #2E7C77
split-complementary
#502E7C #7C772E #337C2E
monochromatic
#160D23 #331D4F #502E7C #6D3FA9 #8C60C4

Accessibility & contrast

On white

10.38
#502E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#502E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502E7C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502E7C#FFFFFF#000000##FFFFFF
##502E7C1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407E
Deuteranopia (green-blind)
#143F7A
Tritanopia (blue-blind)
#473E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502e7c;
/* rgb */ color: rgb(80, 46, 124);
/* oklch */ color: oklch(38.5% 0.128 300.6);
Tailwind
colors: {
  custom: {
    50: '#8468a2',
    500: '#502e7c',
    950: '#000000',
  },
}
SCSS
$custom: #502e7c;
$custom-light: #8468a2;
$custom-dark: #000000;
JSON
{
  "hex": "#502e7c",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 266.154,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38524,
    "c": 0.12773,
    "h": 300.6
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#502E7C
secondary
#88AB5B
accent
#D6529C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #502E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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