#531F98#531F98

#531F98 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.180 H 296.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#531F98
RGBrgb(83, 31, 152)
HSLhsl(266, 66%, 36%)
HSVhsv(266, 80%, 60%)
CMYKcmyk(45.4%, 79.6%, 0%, 40.4%)
CIE-LABlab(26.98, 48.60, -56.29)
CIE-LCHlch(26.98, 74.36, 310.81°)
OKLaboklab(39.26% 0.0803 -0.1613)
OKLCHoklch(39.26% 0.18 296.5)
XYZxyz(9.7233, 5.0858, 30.1690)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F98 #64981F
analogous
#1F2898 #531F98 #8F1F98
triadic
#531F98 #98531F #1F9853
tetradic
#531F98 #981F28 #64981F #1F988F
square
#531F98 #981F28 #64981F #1F988F
split-complementary
#531F98 #988F1F #28981F
monochromatic
#1B0A32 #371565 #531F98 #6F29CB #8F55DC

Accessibility & contrast

On white

10.41
#531F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#531F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F98
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F98#FFFFFF#000000##FFFFFF
##531F981.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#40415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #531f98;
/* rgb */ color: rgb(83, 31, 152);
/* oklch */ color: oklch(39.3% 0.180 296.5);
Tailwind
colors: {
  custom: {
    50: '#8b61b7',
    500: '#531f98',
    950: '#000000',
  },
}
SCSS
$custom: #531f98;
$custom-light: #8b61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#531f98",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 265.785,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39264,
    "c": 0.18015,
    "h": 296.5
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#531F98
secondary
#91C053
accent
#E93FA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #531F98

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

Preview Lab → · Contrast checker → · Palette generator →

#531F98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva