#503297#503297

#503297 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.157 H 291.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#503297
RGBrgb(80, 50, 151)
HSLhsl(258, 50%, 39%)
HSVhsv(258, 67%, 59%)
CMYKcmyk(47%, 66.9%, 0%, 40.8%)
CIE-LABlab(29.96, 38.19, -50.82)
CIE-LCHlch(29.96, 63.57, 306.93°)
OKLaboklab(41.27% 0.0579 -0.1454)
OKLCHoklch(41.27% 0.157 291.7)
XYZxyz(10.0332, 6.2207, 29.9442)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#503297 #799732
analogous
#324697 #503297 #833297
triadic
#503297 #975032 #329750
tetradic
#503297 #973246 #799732 #329783
square
#503297 #973246 #799732 #329783
split-complementary
#503297 #978332 #469732
monochromatic
#1F143B #382369 #503297 #6A45C1 #8F73D1

Accessibility & contrast

On white

9.36
#503297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#503297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #503297
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##503297#FFFFFF#000000##FFFFFF
##5032971.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#3A4A60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #503297;
/* rgb */ color: rgb(80, 50, 151);
/* oklch */ color: oklch(41.3% 0.157 291.7);
Tailwind
colors: {
  custom: {
    50: '#876cb6',
    500: '#503297',
    950: '#000000',
  },
}
SCSS
$custom: #503297;
$custom-light: #876cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#503297",
  "rgb": {
    "r": 80,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 257.822,
    "s": 50.249,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41274,
    "c": 0.15652,
    "h": 291.7
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#503297
secondary
#A2B96C
accent
#DA4EB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #503297

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

Preview Lab → · Contrast checker → · Palette generator →

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