#5230C6#5230C6

#5230C6 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.215 H 284.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5230C6
RGBrgb(82, 48, 198)
HSLhsl(254, 61%, 48%)
HSVhsv(254, 76%, 78%)
CMYKcmyk(58.6%, 75.8%, 0%, 22.4%)
CIE-LABlab(33.95, 53.25, -72.37)
CIE-LCHlch(33.95, 89.85, 306.35°)
OKLaboklab(45.43% 0.053 -0.2085)
OKLCHoklch(45.43% 0.215 284.3)
XYZxyz(14.7265, 7.9840, 54.1802)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230C6 #A4C630
analogous
#3059C6 #5230C6 #9D30C6
triadic
#5230C6 #C65230 #30C652
tetradic
#5230C6 #C63059 #A4C630 #30C69D
square
#5230C6 #C63059 #A4C630 #30C69D
split-complementary
#5230C6 #C69D30 #59C630
monochromatic
#291863 #3E2495 #5230C6 #785CD7 #A18DE3

Accessibility & contrast

On white

8.09
#5230C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5230C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5230C6#FFFFFF#000000##FFFFFF
##5230C61.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#095B79
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5230c6;
/* rgb */ color: rgb(82, 48, 198);
/* oklch */ color: oklch(45.4% 0.215 284.3);
Tailwind
colors: {
  custom: {
    50: '#906dd9',
    500: '#5230c6',
    950: '#000000',
  },
}
SCSS
$custom: #5230c6;
$custom-light: #906dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5230c6",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 198
  },
  "hsl": {
    "h": 253.6,
    "s": 60.976,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45433,
    "c": 0.21514,
    "h": 284.3
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#5230C6
secondary
#BDCE84
accent
#E444C0
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5230C6

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

Preview Lab → · Contrast checker → · Palette generator →

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