#5230AA#5230AA

#5230AA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.182 H 289.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5230AA
RGBrgb(82, 48, 170)
HSLhsl(257, 56%, 43%)
HSVhsv(257, 72%, 67%)
CMYKcmyk(51.8%, 71.8%, 0%, 33.3%)
CIE-LABlab(31.37, 45.18, -60.02)
CIE-LCHlch(31.37, 75.13, 306.97°)
OKLaboklab(42.83% 0.0596 -0.1724)
OKLCHoklch(42.83% 0.182 289.1)
XYZxyz(11.7902, 6.8095, 38.7155)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230AA #88AA30
analogous
#304BAA #5230AA #8F30AA
triadic
#5230AA #AA5230 #30AA52
tetradic
#5230AA #AA304B #88AA30 #30AA8F
square
#5230AA #AA304B #88AA30 #30AA8F
split-complementary
#5230AA #AA8F30 #4BAA30
monochromatic
#24154B #3B237A #5230AA #6F4BCC #957BDA

Accessibility & contrast

On white

8.89
#5230AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5230AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230AA
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230AA#FFFFFF#000000##FFFFFF
##5230AA1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#32506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5230aa;
/* rgb */ color: rgb(82, 48, 170);
/* oklch */ color: oklch(42.8% 0.182 289.1);
Tailwind
colors: {
  custom: {
    50: '#8b6bc4',
    500: '#5230aa',
    950: '#000000',
  },
}
SCSS
$custom: #5230aa;
$custom-light: #8b6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5230aa",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 256.721,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42826,
    "c": 0.18239,
    "h": 289.1
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#5230AA
secondary
#ACC274
accent
#DF49B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5230AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5230AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva