#5230B2#5230B2

#5230B2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.192 H 287.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5230B2
RGBrgb(82, 48, 178)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 73%, 70%)
CMYKcmyk(53.9%, 73%, 0%, 30.2%)
CIE-LABlab(32.08, 47.49, -63.63)
CIE-LCHlch(32.08, 79.40, 306.74°)
OKLaboklab(43.55% 0.0579 -0.183)
OKLCHoklch(43.55% 0.192 287.6)
XYZxyz(12.5701, 7.1215, 42.8231)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230B2 #90B230
analogous
#304FB2 #5230B2 #9330B2
triadic
#5230B2 #B25230 #30B252
tetradic
#5230B2 #B2304F #90B230 #30B293
square
#5230B2 #B2304F #90B230 #30B293
split-complementary
#5230B2 #B29330 #4FB230
monochromatic
#261652 #3C2382 #5230B2 #7150D0 #9880DD

Accessibility & contrast

On white

8.66
#5230B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5230B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230B2
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230B2#FFFFFF#000000##FFFFFF
##5230B21.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#2B536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5230b2;
/* rgb */ color: rgb(82, 48, 178);
/* oklch */ color: oklch(43.5% 0.192 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d6cca',
    500: '#5230b2',
    950: '#000000',
  },
}
SCSS
$custom: #5230b2;
$custom-light: #8d6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5230b2",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 255.692,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4355,
    "c": 0.19191,
    "h": 287.6
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#5230B2
secondary
#B1C678
accent
#E147B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5230B2

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

Preview Lab → · Contrast checker → · Palette generator →

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