#5230B3#5230B3

#5230B3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.193 H 287.4°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5230B3
RGBrgb(82, 48, 179)
HSLhsl(256, 58%, 45%)
HSVhsv(256, 73%, 70%)
CMYKcmyk(54.2%, 73.2%, 0%, 29.8%)
CIE-LABlab(32.17, 47.78, -64.08)
CIE-LCHlch(32.17, 79.93, 306.71°)
OKLaboklab(43.64% 0.0577 -0.1843)
OKLCHoklch(43.64% 0.193 287.4)
XYZxyz(12.6709, 7.1618, 43.3538)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230B3 #91B330
analogous
#304FB3 #5230B3 #9430B3
triadic
#5230B3 #B35230 #30B352
tetradic
#5230B3 #B3304F #91B330 #30B394
square
#5230B3 #B3304F #91B330 #30B394
split-complementary
#5230B3 #B39430 #4FB330
monochromatic
#261652 #3C2383 #5230B3 #7150D0 #9880DD

Accessibility & contrast

On white

8.63
#5230B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5230B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230B3
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230B3#FFFFFF#000000##FFFFFF
##5230B31.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#2A536F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5230b3;
/* rgb */ color: rgb(82, 48, 179);
/* oklch */ color: oklch(43.6% 0.193 287.4);
Tailwind
colors: {
  custom: {
    50: '#8d6ccb',
    500: '#5230b3',
    950: '#000000',
  },
}
SCSS
$custom: #5230b3;
$custom-light: #8d6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#5230b3",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 255.573,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.19309,
    "h": 287.4
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5230B3

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

Preview Lab → · Contrast checker → · Palette generator →

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