#503B8A#503B8A

#503B8A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 41.8% C 0.126 H 292.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#503B8A
RGBrgb(80, 59, 138)
HSLhsl(256, 40%, 39%)
HSVhsv(256, 57%, 54%)
CMYKcmyk(42%, 57.2%, 0%, 45.9%)
CIE-LABlab(31.04, 28.95, -41.09)
CIE-LCHlch(31.04, 50.26, 305.17°)
OKLaboklab(41.76% 0.0479 -0.1168)
OKLCHoklch(41.76% 0.126 292.3)
XYZxyz(9.4584, 6.6681, 24.8286)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503B8A #758A3B
analogous
#3B4D8A #503B8A #773B8A
triadic
#503B8A #8A503B #3B8A50
tetradic
#503B8A #8A3B4D #758A3B #3B8A77
square
#503B8A #8A3B4D #758A3B #3B8A77
split-complementary
#503B8A #8A773B #4D8A3B
monochromatic
#1E1634 #37295F #503B8A #694FB4 #8E79C6

Accessibility & contrast

On white

9.00
#503B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#503B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503B8A
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503B8A#FFFFFF#000000##FFFFFF
##503B8A1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#184888
Tritanopia (blue-blind)
#404C5C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #503b8a;
/* rgb */ color: rgb(80, 59, 138);
/* oklch */ color: oklch(41.8% 0.126 292.3);
Tailwind
colors: {
  custom: {
    50: '#8571ad',
    500: '#503b8a',
    950: '#000000',
  },
}
SCSS
$custom: #503b8a;
$custom-light: #8571ad;
$custom-dark: #000000;
JSON
{
  "hex": "#503b8a",
  "rgb": {
    "r": 80,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 255.949,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.12625,
    "h": 292.3
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#503B8A
secondary
#9FAF71
accent
#D058B0
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #503B8A

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

Preview Lab → · Contrast checker → · Palette generator →

#503B8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva