#5230B7#5230B7

#5230B7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.198 H 286.7°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5230B7
RGBrgb(82, 48, 183)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 74%, 72%)
CMYKcmyk(55.2%, 73.8%, 0%, 28.2%)
CIE-LABlab(32.54, 48.94, -65.86)
CIE-LCHlch(32.54, 82.05, 306.62°)
OKLaboklab(44.01% 0.0567 -0.1895)
OKLCHoklch(44.01% 0.198 286.7)
XYZxyz(13.0813, 7.3259, 45.5153)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230B7 #95B730
analogous
#3051B7 #5230B7 #9530B7
triadic
#5230B7 #B75230 #30B752
tetradic
#5230B7 #B73051 #95B730 #30B795
square
#5230B7 #B73051 #95B730 #30B795
split-complementary
#5230B7 #B79530 #51B730
monochromatic
#271756 #3C2387 #5230B7 #7352D2 #9A83DE

Accessibility & contrast

On white

8.52
#5230B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5230B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230B7
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230B7#FFFFFF#000000##FFFFFF
##5230B71.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#265571
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5230b7;
/* rgb */ color: rgb(82, 48, 183);
/* oklch */ color: oklch(44.0% 0.198 286.7);
Tailwind
colors: {
  custom: {
    50: '#8d6cce',
    500: '#5230b7',
    950: '#000000',
  },
}
SCSS
$custom: #5230b7;
$custom-light: #8d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5230b7",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 255.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44012,
    "c": 0.19779,
    "h": 286.7
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#5230B7
secondary
#B4C87B
accent
#E246BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5230B7

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

Preview Lab → · Contrast checker → · Palette generator →

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