#52308E#52308E

#52308E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.148 H 295.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#52308E
RGBrgb(82, 48, 142)
HSLhsl(262, 49%, 37%)
HSVhsv(262, 66%, 56%)
CMYKcmyk(42.3%, 66.2%, 0%, 44.3%)
CIE-LABlab(29.06, 37.16, -46.74)
CIE-LCHlch(29.06, 59.71, 308.48°)
OKLaboklab(40.45% 0.0641 -0.1334)
OKLCHoklch(40.45% 0.148 295.7)
XYZxyz(9.4178, 5.8605, 26.2209)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52308E #6C8E30
analogous
#303D8E #52308E #81308E
triadic
#52308E #8E5230 #308E52
tetradic
#52308E #8E303D #6C8E30 #308E81
square
#52308E #8E303D #6C8E30 #308E81
split-complementary
#52308E #8E8130 #3D8E30
monochromatic
#1D1133 #382160 #52308E #6C3FBC #8F6BCD

Accessibility & contrast

On white

9.67
#52308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#52308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52308E
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52308E#FFFFFF#000000##FFFFFF
##52308E1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#43465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52308e;
/* rgb */ color: rgb(82, 48, 142);
/* oklch */ color: oklch(40.5% 0.148 295.7);
Tailwind
colors: {
  custom: {
    50: '#886ab0',
    500: '#52308e',
    950: '#000000',
  },
}
SCSS
$custom: #52308e;
$custom-light: #886ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#52308e",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 261.702,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40451,
    "c": 0.14799,
    "h": 295.7
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#52308E
secondary
#98B465
accent
#D94FA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #52308E

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

Preview Lab → · Contrast checker → · Palette generator →

#52308E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva