#503271#503271

#503271 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.4% C 0.107 H 303.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#503271
RGBrgb(80, 50, 113)
HSLhsl(269, 39%, 32%)
HSVhsv(269, 56%, 44%)
CMYKcmyk(29.2%, 55.8%, 0%, 55.7%)
CIE-LABlab(27.24, 27.40, -31.49)
CIE-LCHlch(27.24, 41.74, 311.03°)
OKLaboklab(38.42% 0.0593 -0.0887)
OKLCHoklch(38.42% 0.107 303.8)
XYZxyz(7.4288, 5.1790, 16.2279)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503271 #537132
analogous
#323471 #503271 #703271
triadic
#503271 #715032 #327150
tetradic
#503271 #713234 #537132 #327170
square
#503271 #713234 #537132 #327170
split-complementary
#503271 #717032 #347132
monochromatic
#140C1C #321F47 #503271 #6E459B #8D63BA

Accessibility & contrast

On white

10.32
#503271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#503271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503271
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503271#FFFFFF#000000##FFFFFF
##5032711.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#26406F
Tritanopia (blue-blind)
#4A3E4C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #503271;
/* rgb */ color: rgb(80, 50, 113);
/* oklch */ color: oklch(38.4% 0.107 303.8);
Tailwind
colors: {
  custom: {
    50: '#836b9a',
    500: '#503271',
    950: '#000000',
  },
}
SCSS
$custom: #503271;
$custom-light: #836b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#503271",
  "rgb": {
    "r": 80,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 268.571,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3842,
    "c": 0.10666,
    "h": 303.8
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#503271
secondary
#81A25D
accent
#CF5997
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #503271

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

Preview Lab → · Contrast checker → · Palette generator →

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