#5231AF#5231AF

#5231AF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.187 H 287.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5231AF
RGBrgb(82, 49, 175)
HSLhsl(256, 56%, 44%)
HSVhsv(256, 72%, 69%)
CMYKcmyk(53.1%, 72%, 0%, 31.4%)
CIE-LABlab(32.00, 46.10, -61.98)
CIE-LCHlch(32.00, 77.25, 306.64°)
OKLaboklab(43.41% 0.0577 -0.1781)
OKLCHoklch(43.41% 0.187 287.9)
XYZxyz(12.3136, 7.0850, 41.2678)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231AF #8EAF31
analogous
#314FAF #5231AF #9131AF
triadic
#5231AF #AF5231 #31AF52
tetradic
#5231AF #AF314F #8EAF31 #31AF91
square
#5231AF #AF314F #8EAF31 #31AF91
split-complementary
#5231AF #AF9131 #4FAF31
monochromatic
#25164F #3C247F #5231AF #704FCE #977FDB

Accessibility & contrast

On white

8.69
#5231AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5231AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231AF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231AF#FFFFFF#000000##FFFFFF
##5231AF1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#2E526D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5231af;
/* rgb */ color: rgb(82, 49, 175);
/* oklch */ color: oklch(43.4% 0.187 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c6cc8',
    500: '#5231af',
    950: '#000000',
  },
}
SCSS
$custom: #5231af;
$custom-light: #8c6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5231af",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 255.714,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.18724,
    "h": 287.9
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#5231AF
secondary
#B0C478
accent
#E048B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231AF

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

Preview Lab → · Contrast checker → · Palette generator →

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