#5230C7#5230C7

#5230C7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.216 H 284.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5230C7
RGBrgb(82, 48, 199)
HSLhsl(254, 61%, 48%)
HSVhsv(254, 76%, 78%)
CMYKcmyk(58.8%, 75.9%, 0%, 22%)
CIE-LABlab(34.05, 53.54, -72.79)
CIE-LCHlch(34.05, 90.36, 306.33°)
OKLaboklab(45.53% 0.0527 -0.2098)
OKLCHoklch(45.53% 0.216 284.1)
XYZxyz(14.8423, 8.0303, 54.7897)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230C7 #A5C730
analogous
#3059C7 #5230C7 #9D30C7
triadic
#5230C7 #C75230 #30C752
tetradic
#5230C7 #C73059 #A5C730 #30C79D
square
#5230C7 #C73059 #A5C730 #30C79D
split-complementary
#5230C7 #C79D30 #59C730
monochromatic
#291864 #3E2496 #5230C7 #785CD8 #A18EE4

Accessibility & contrast

On white

8.06
#5230C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5230C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5230C7#FFFFFF#000000##FFFFFF
##5230C71.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#055B7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5230c7;
/* rgb */ color: rgb(82, 48, 199);
/* oklch */ color: oklch(45.5% 0.216 284.1);
Tailwind
colors: {
  custom: {
    50: '#906dd9',
    500: '#5230c7',
    950: '#000000',
  },
}
SCSS
$custom: #5230c7;
$custom-light: #906dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5230c7",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 199
  },
  "hsl": {
    "h": 253.51,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4553,
    "c": 0.21629,
    "h": 284.1
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5230C7

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

Preview Lab → · Contrast checker → · Palette generator →

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