#52307F#52307F

#52307F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.129 H 300.4°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#52307F
RGBrgb(82, 48, 127)
HSLhsl(266, 45%, 34%)
HSVhsv(266, 62%, 50%)
CMYKcmyk(35.4%, 62.2%, 0%, 50.2%)
CIE-LABlab(27.95, 32.97, -39.19)
CIE-LCHlch(27.95, 51.21, 310.07°)
OKLaboklab(39.3% 0.0652 -0.1112)
OKLCHoklch(39.3% 0.129 300.4)
XYZxyz(8.3665, 5.4400, 20.6838)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52307F #5D7F30
analogous
#30367F #52307F #7A307F
triadic
#52307F #7F5230 #307F52
tetradic
#52307F #7F3036 #5D7F30 #307F7A
square
#52307F #7F3036 #5D7F30 #307F7A
split-complementary
#52307F #7F7A30 #367F30
monochromatic
#190E26 #351F53 #52307F #6F41AB #8E65C5

Accessibility & contrast

On white

10.06
#52307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#52307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52307F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52307F#FFFFFF#000000##FFFFFF
##52307F1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024282
Deuteranopia (green-blind)
#16417D
Tritanopia (blue-blind)
#494152
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52307f;
/* rgb */ color: rgb(82, 48, 127);
/* oklch */ color: oklch(39.3% 0.129 300.4);
Tailwind
colors: {
  custom: {
    50: '#866aa5',
    500: '#52307f',
    950: '#000000',
  },
}
SCSS
$custom: #52307f;
$custom-light: #866aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#52307f",
  "rgb": {
    "r": 82,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 265.823,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.12887,
    "h": 300.4
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#52307F
secondary
#8BAC5F
accent
#D5539D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52307F

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

Preview Lab → · Contrast checker → · Palette generator →

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