#5228BF#5228BF

#5228BF is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.215 H 286.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5228BF
RGBrgb(82, 40, 191)
HSLhsl(257, 65%, 45%)
HSVhsv(257, 79%, 75%)
CMYKcmyk(57.1%, 79.1%, 0%, 25.1%)
CIE-LABlab(31.97, 55.00, -71.52)
CIE-LCHlch(31.97, 90.22, 307.56°)
OKLaboklab(43.85% 0.0602 -0.206)
OKLCHoklch(43.85% 0.215 286.3)
XYZxyz(13.6396, 7.0722, 49.9265)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228BF #95BF28
analogous
#2849BF #5228BF #9E28BF
triadic
#5228BF #BF5228 #28BF52
tetradic
#5228BF #BF2849 #95BF28 #28BF9E
square
#5228BF #BF2849 #95BF28 #28BF9E
split-complementary
#5228BF #BF9E28 #49BF28
monochromatic
#27135A #3C1D8C #5228BF #734BD9 #9A7EE4

Accessibility & contrast

On white

8.70
#5228BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5228BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228BF
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228BF#FFFFFF#000000##FFFFFF
##5228BF1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC3
Deuteranopia (green-blind)
#0047BC
Tritanopia (blue-blind)
#1B5574
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5228bf;
/* rgb */ color: rgb(82, 40, 191);
/* oklch */ color: oklch(43.8% 0.215 286.3);
Tailwind
colors: {
  custom: {
    50: '#8f68d4',
    500: '#5228bf',
    950: '#000000',
  },
}
SCSS
$custom: #5228bf;
$custom-light: #8f68d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5228bf",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 191
  },
  "hsl": {
    "h": 256.689,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43846,
    "c": 0.21457,
    "h": 286.3
  },
  "luminance": 0.07073
}

Semantic roles & 50–950 ramp

primary
#5228BF
secondary
#B4CC77
accent
#E83FB9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5228BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5228BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva