#5230A2#5230A2

#5230A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.173 H 290.7°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5230A2
RGBrgb(82, 48, 162)
HSLhsl(258, 54%, 41%)
HSVhsv(258, 70%, 64%)
CMYKcmyk(49.4%, 70.4%, 0%, 36.5%)
CIE-LABlab(30.68, 42.88, -56.33)
CIE-LCHlch(30.68, 70.79, 307.28°)
OKLaboklab(42.12% 0.0612 -0.1615)
OKLCHoklch(42.12% 0.173 290.7)
XYZxyz(11.0564, 6.5159, 34.8506)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230A2 #80A230
analogous
#3047A2 #5230A2 #8B30A2
triadic
#5230A2 #A25230 #30A252
tetradic
#5230A2 #A23047 #80A230 #30A28B
square
#5230A2 #A23047 #80A230 #30A28B
split-complementary
#5230A2 #A28B30 #47A230
monochromatic
#221444 #3A2273 #5230A2 #6D47C8 #9376D6

Accessibility & contrast

On white

9.12
#5230A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5230A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5230A2#FFFFFF#000000##FFFFFF
##5230A21.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#384D65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5230a2;
/* rgb */ color: rgb(82, 48, 162);
/* oklch */ color: oklch(42.1% 0.173 290.7);
Tailwind
colors: {
  custom: {
    50: '#8a6bbe',
    500: '#5230a2',
    950: '#000000',
  },
}
SCSS
$custom: #5230a2;
$custom-light: #8a6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5230a2",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 257.895,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.17274,
    "h": 290.7
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#5230A2
secondary
#A7BE6F
accent
#DE4AB2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5230A2

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

Preview Lab → · Contrast checker → · Palette generator →

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