#5231A7#5231A7

#5231A7 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.178 H 289.5°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5231A7
RGBrgb(82, 49, 167)
HSLhsl(257, 55%, 42%)
HSVhsv(257, 71%, 65%)
CMYKcmyk(50.9%, 70.7%, 0%, 34.5%)
CIE-LABlab(31.30, 43.78, -58.33)
CIE-LCHlch(31.30, 72.93, 306.89°)
OKLaboklab(42.7% 0.0593 -0.1674)
OKLCHoklch(42.7% 0.178 289.5)
XYZxyz(11.5510, 6.7800, 37.2518)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231A7 #86A731
analogous
#314BA7 #5231A7 #8D31A7
triadic
#5231A7 #A75231 #31A752
tetradic
#5231A7 #A7314B #86A731 #31A78D
square
#5231A7 #A7314B #86A731 #31A78D
split-complementary
#5231A7 #A78D31 #4BA731
monochromatic
#241548 #3B2378 #5231A7 #6F4BCA #957AD8

Accessibility & contrast

On white

8.91
#5231A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5231A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231A7
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231A7#FFFFFF#000000##FFFFFF
##5231A71.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#344F68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5231a7;
/* rgb */ color: rgb(82, 49, 167);
/* oklch */ color: oklch(42.7% 0.178 289.5);
Tailwind
colors: {
  custom: {
    50: '#8b6cc2',
    500: '#5231a7',
    950: '#000000',
  },
}
SCSS
$custom: #5231a7;
$custom-light: #8b6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5231a7",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 256.78,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42697,
    "c": 0.1776,
    "h": 289.5
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#5231A7
secondary
#ABC173
accent
#DE4AB5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5231A7

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

Preview Lab → · Contrast checker → · Palette generator →

#5231A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva