#531174#531174

#531174 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.157 H 310.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#531174
RGBrgb(83, 17, 116)
HSLhsl(280, 74%, 26%)
HSVhsv(280, 85%, 45%)
CMYKcmyk(28.4%, 85.3%, 0%, 54.5%)
CIE-LABlab(21.95, 45.21, -41.91)
CIE-LCHlch(21.95, 61.64, 317.17°)
OKLaboklab(34.77% 0.1021 -0.1189)
OKLCHoklch(34.77% 0.157 310.6)
XYZxyz(6.9195, 3.5010, 16.8309)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531174 #327411
analogous
#211174 #531174 #741163
triadic
#531174 #745311 #117453
tetradic
#531174 #742111 #327411 #116374
square
#531174 #742111 #327411 #116374
split-complementary
#531174 #637411 #117421
monochromatic
#13041B #2D093F #531174 #7919A9 #9F21DE

Accessibility & contrast

On white

12.35
#531174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#531174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531174
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531174#FFFFFF#000000##FFFFFF
##5311741.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4E2B44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #531174;
/* rgb */ color: rgb(83, 17, 116);
/* oklch */ color: oklch(34.8% 0.157 310.6);
Tailwind
colors: {
  custom: {
    50: '#88599d',
    500: '#531174',
    950: '#000000',
  },
}
SCSS
$custom: #531174;
$custom-light: #88599d;
$custom-dark: #000000;
JSON
{
  "hex": "#531174",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 280,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.15676,
    "h": 310.6
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#531174
secondary
#5DAB36
accent
#F13775
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531174

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

Preview Lab → · Contrast checker → · Palette generator →

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