#5230B4#5230B4

#5230B4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.194 H 287.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5230B4
RGBrgb(82, 48, 180)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.4%, 73.3%, 0%, 29.4%)
CIE-LABlab(32.26, 48.07, -64.53)
CIE-LCHlch(32.26, 80.46, 306.69°)
OKLaboklab(43.73% 0.0574 -0.1856)
OKLCHoklch(43.73% 0.194 287.2)
XYZxyz(12.7724, 7.2024, 43.8884)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5230B4 #92B430
analogous
#3050B4 #5230B4 #9430B4
triadic
#5230B4 #B45230 #30B452
tetradic
#5230B4 #B43050 #92B430 #30B494
square
#5230B4 #B43050 #92B430 #30B494
split-complementary
#5230B4 #B49430 #50B430
monochromatic
#261653 #3C2384 #5230B4 #7251D1 #9981DD

Accessibility & contrast

On white

8.60
#5230B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5230B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5230B4
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5230B4#FFFFFF#000000##FFFFFF
##5230B41.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#29546F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5230b4;
/* rgb */ color: rgb(82, 48, 180);
/* oklch */ color: oklch(43.7% 0.194 287.2);
Tailwind
colors: {
  custom: {
    50: '#8d6ccc',
    500: '#5230b4',
    950: '#000000',
  },
}
SCSS
$custom: #5230b4;
$custom-light: #8d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5230b4",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 255.455,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43734,
    "c": 0.19426,
    "h": 287.2
  },
  "luminance": 0.07203
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5230B4

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

Preview Lab → · Contrast checker → · Palette generator →

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