#5230C4#5230C4

#5230C4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.213 H 284.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5230C4
RGBrgb(82, 48, 196)
HSLhsl(254, 61%, 48%)
HSVhsv(254, 76%, 77%)
CMYKcmyk(58.2%, 75.5%, 0%, 23.1%)
CIE-LABlab(33.76, 52.68, -71.51)
CIE-LCHlch(33.76, 88.82, 306.38°)
OKLaboklab(45.24% 0.0535 -0.206)
OKLCHoklch(45.24% 0.213 284.6)
XYZxyz(14.4974, 7.8924, 52.9733)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230C4 #A2C430
analogous
#3058C4 #5230C4 #9C30C4
triadic
#5230C4 #C45230 #30C452
tetradic
#5230C4 #C43058 #A2C430 #30C49C
square
#5230C4 #C43058 #A2C430 #30C49C
split-complementary
#5230C4 #C49C30 #58C430
monochromatic
#291862 #3D2493 #5230C4 #775AD7 #A08CE3

Accessibility & contrast

On white

8.14
#5230C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5230C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5230C4#FFFFFF#000000##FFFFFF
##5230C41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#105A78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5230c4;
/* rgb */ color: rgb(82, 48, 196);
/* oklch */ color: oklch(45.2% 0.213 284.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dd7',
    500: '#5230c4',
    950: '#000000',
  },
}
SCSS
$custom: #5230c4;
$custom-light: #8f6dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5230c4",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 196
  },
  "hsl": {
    "h": 253.784,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.21285,
    "h": 284.6
  },
  "luminance": 0.07893
}

Semantic roles & 50–950 ramp

primary
#5230C4
secondary
#BCCD83
accent
#E444BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5230C4

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

Preview Lab → · Contrast checker → · Palette generator →

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