#531F9C#531F9C

#531F9C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 295.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#531F9C
RGBrgb(83, 31, 156)
HSLhsl(265, 67%, 37%)
HSVhsv(265, 80%, 61%)
CMYKcmyk(46.8%, 80.1%, 0%, 38.8%)
CIE-LABlab(27.35, 49.63, -58.13)
CIE-LCHlch(27.35, 76.43, 310.49°)
OKLaboklab(39.64% 0.079 -0.1667)
OKLCHoklch(39.64% 0.184 295.4)
XYZxyz(10.0564, 5.2190, 31.9236)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F9C #689C1F
analogous
#1F2A9C #531F9C #921F9C
triadic
#531F9C #9C531F #1F9C53
tetradic
#531F9C #9C1F2A #689C1F #1F9C92
square
#531F9C #9C1F2A #689C1F #1F9C92
split-complementary
#531F9C #9C921F #2A9C1F
monochromatic
#1D0B36 #381569 #531F9C #6E29CF #8F58DE

Accessibility & contrast

On white

10.27
#531F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#531F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F9C
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F9C#FFFFFF#000000##FFFFFF
##531F9C1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3E425E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #531f9c;
/* rgb */ color: rgb(83, 31, 156);
/* oklch */ color: oklch(39.6% 0.184 295.4);
Tailwind
colors: {
  custom: {
    50: '#8b62ba',
    500: '#531f9c',
    950: '#000000',
  },
}
SCSS
$custom: #531f9c;
$custom-light: #8b62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#531f9c",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 264.96,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39637,
    "c": 0.18445,
    "h": 295.4
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#531F9C
secondary
#94C155
accent
#EA3EA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #531F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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