#531275#531275

#531275 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 310.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#531275
RGBrgb(83, 18, 117)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 85%, 46%)
CMYKcmyk(29.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(22.15, 45.10, -42.23)
CIE-LCHlch(22.15, 61.78, 316.88°)
OKLaboklab(34.94% 0.1011 -0.1199)
OKLCHoklch(34.94% 0.157 310.1)
XYZxyz(6.9938, 3.5561, 17.1441)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531275 #347512
analogous
#221275 #531275 #751266
triadic
#531275 #755312 #127553
tetradic
#531275 #752212 #347512 #126675
square
#531275 #752212 #347512 #126675
split-complementary
#531275 #667512 #127522
monochromatic
#13041B #2D0A40 #531275 #791AAA #9E24DD

Accessibility & contrast

On white

12.27
#531275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#531275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531275
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531275#FFFFFF#000000##FFFFFF
##5312751.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#4E2C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #531275;
/* rgb */ color: rgb(83, 18, 117);
/* oklch */ color: oklch(34.9% 0.157 310.1);
Tailwind
colors: {
  custom: {
    50: '#885a9d',
    500: '#531275',
    950: '#000000',
  },
}
SCSS
$custom: #531275;
$custom-light: #885a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#531275",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 279.394,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.1568,
    "h": 310.1
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#531275
secondary
#5FAC37
accent
#F03877
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531275

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

Preview Lab → · Contrast checker → · Palette generator →

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