#5230AB#5230AB

#5230AB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.184 H 288.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5230AB
RGBrgb(82, 48, 171)
HSLhsl(257, 56%, 43%)
HSVhsv(257, 72%, 67%)
CMYKcmyk(52%, 71.9%, 0%, 32.9%)
CIE-LABlab(31.46, 45.47, -60.47)
CIE-LCHlch(31.46, 75.66, 306.94°)
OKLaboklab(42.92% 0.0594 -0.1737)
OKLCHoklch(42.92% 0.184 288.9)
XYZxyz(11.8852, 6.8475, 39.2156)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230AB #89AB30
analogous
#304CAB #5230AB #8F30AB
triadic
#5230AB #AB5230 #30AB52
tetradic
#5230AB #AB304C #89AB30 #30AB8F
square
#5230AB #AB304C #89AB30 #30AB8F
split-complementary
#5230AB #AB8F30 #4CAB30
monochromatic
#24154B #3B237B #5230AB #6F4CCD #967BDA

Accessibility & contrast

On white

8.86
#5230AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5230AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5230AB#FFFFFF#000000##FFFFFF
##5230AB1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#31506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5230ab;
/* rgb */ color: rgb(82, 48, 171);
/* oklch */ color: oklch(42.9% 0.184 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b6bc5',
    500: '#5230ab',
    950: '#000000',
  },
}
SCSS
$custom: #5230ab;
$custom-light: #8b6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5230ab",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 256.585,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42916,
    "c": 0.18359,
    "h": 288.9
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#5230AB
secondary
#ADC374
accent
#DF48B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5230AB

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

Preview Lab → · Contrast checker → · Palette generator →

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