#502183#502183

#502183 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.154 H 300.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#502183
RGBrgb(80, 33, 131)
HSLhsl(269, 60%, 32%)
HSVhsv(269, 75%, 51%)
CMYKcmyk(38.9%, 74.8%, 0%, 48.6%)
CIE-LABlab(25.05, 41.70, -46.41)
CIE-LCHlch(25.05, 62.40, 311.94°)
OKLaboklab(37.25% 0.0794 -0.1324)
OKLCHoklch(37.25% 0.154 300.9)
XYZxyz(7.9479, 4.4318, 21.9050)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502183 #548321
analogous
#212383 #502183 #812183
triadic
#502183 #835021 #218350
tetradic
#502183 #832123 #548321 #218381
square
#502183 #832123 #548321 #218381
split-complementary
#502183 #838121 #238321
monochromatic
#140821 #321552 #502183 #6E2DB4 #8C4CD2

Accessibility & contrast

On white

11.13
#502183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#502183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502183
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502183#FFFFFF#000000##FFFFFF
##5021831.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#453950
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #502183;
/* rgb */ color: rgb(80, 33, 131);
/* oklch */ color: oklch(37.3% 0.154 300.9);
Tailwind
colors: {
  custom: {
    50: '#8661a8',
    500: '#502183',
    950: '#000000',
  },
}
SCSS
$custom: #502183;
$custom-light: #8661a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502183",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 268.776,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37252,
    "c": 0.15437,
    "h": 300.9
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

primary
#502183
secondary
#82B54B
accent
#E34597
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502183

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

Preview Lab → · Contrast checker → · Palette generator →

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