#52307E#52307E

#52307E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.128 H 300.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#52307E
RGBrgb(82, 48, 126)
HSLhsl(266, 45%, 34%)
HSVhsv(266, 62%, 49%)
CMYKcmyk(34.9%, 61.9%, 0%, 50.6%)
CIE-LABlab(27.88, 32.69, -38.67)
CIE-LCHlch(27.88, 50.64, 310.21°)
OKLaboklab(39.23% 0.0652 -0.1096)
OKLCHoklch(39.23% 0.128 300.7)
XYZxyz(8.3016, 5.4141, 20.3423)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52307E #5C7E30
analogous
#30357E #52307E #79307E
triadic
#52307E #7E5230 #307E52
tetradic
#52307E #7E3035 #5C7E30 #307E79
square
#52307E #7E3035 #5C7E30 #307E79
split-complementary
#52307E #7E7930 #357E30
monochromatic
#180E25 #351F52 #52307E #6F41AA #8E64C4

Accessibility & contrast

On white

10.08
#52307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#52307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52307E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52307E#FFFFFF#000000##FFFFFF
##52307E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044181
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#494052
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52307e;
/* rgb */ color: rgb(82, 48, 126);
/* oklch */ color: oklch(39.2% 0.128 300.7);
Tailwind
colors: {
  custom: {
    50: '#866aa4',
    500: '#52307e',
    950: '#000000',
  },
}
SCSS
$custom: #52307e;
$custom-light: #866aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#52307e",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 266.154,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39225,
    "c": 0.12757,
    "h": 300.7
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#52307E
secondary
#8AAB5F
accent
#D5539C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52307E

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

Preview Lab → · Contrast checker → · Palette generator →

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