#504271#504271

#504271 is a dark, moderate violet. Relative luminance 0.068; OKLCH L 41.5% C 0.078 H 296.6°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#504271
RGBrgb(80, 66, 113)
HSLhsl(258, 26%, 35%)
HSVhsv(258, 42%, 44%)
CMYKcmyk(29.2%, 41.6%, 0%, 55.7%)
CIE-LABlab(31.33, 17.24, -25.01)
CIE-LCHlch(31.33, 30.38, 304.57°)
OKLaboklab(41.49% 0.0349 -0.0698)
OKLCHoklch(41.49% 0.078 296.6)
XYZxyz(8.2364, 6.7941, 16.4970)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504271 #637142
analogous
#424C71 #504271 #674271
triadic
#504271 #715042 #427150
tetradic
#504271 #71424C #637142 #427167
square
#504271 #71424C #637142 #427167
split-complementary
#504271 #716742 #4C7142
monochromatic
#191524 #352B4A #504271 #6B5998 #8C7BB2

Accessibility & contrast

On white

8.90
#504271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#504271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504271
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504271#FFFFFF#000000##FFFFFF
##5042711.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#374970
Tritanopia (blue-blind)
#494A54
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504271;
/* rgb */ color: rgb(80, 66, 113);
/* oklch */ color: oklch(41.5% 0.078 296.6);
Tailwind
colors: {
  custom: {
    50: '#82769a',
    500: '#504271',
    950: '#000000',
  },
}
SCSS
$custom: #504271;
$custom-light: #82769a;
$custom-dark: #000000;
JSON
{
  "hex": "#504271",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 257.872,
    "s": 26.257,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41489,
    "c": 0.07806,
    "h": 296.6
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#504271
secondary
#909D71
accent
#C365A7
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0A080E
muted
#7C7B7E

Preview Lab

Preview with #504271

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

Preview Lab → · Contrast checker → · Palette generator →

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