#5234D7#5234D7

#5234D7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.231 H 281.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5234D7
RGBrgb(82, 52, 215)
HSLhsl(251, 67%, 52%)
HSVhsv(251, 76%, 84%)
CMYKcmyk(61.9%, 75.8%, 0%, 15.7%)
CIE-LABlab(36.28, 56.20, -78.39)
CIE-LCHlch(36.28, 96.45, 305.64°)
OKLaboklab(47.56% 0.046 -0.2261)
OKLCHoklch(47.56% 0.231 281.5)
XYZxyz(16.9696, 9.1549, 65.1496)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234D7 #B9D734
analogous
#3468D7 #5234D7 #A434D7
triadic
#5234D7 #D75234 #34D752
tetradic
#5234D7 #D73468 #B9D734 #34D7A4
square
#5234D7 #D73468 #B9D734 #34D7A4
split-complementary
#5234D7 #D7A434 #68D734
monochromatic
#2A1879 #3B22AC #5234D7 #7E67E1 #A99AEB

Accessibility & contrast

On white

7.42
#5234D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5234D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234D7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234D7#FFFFFF#000000##FFFFFF
##5234D71.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDC
Deuteranopia (green-blind)
#004FD4
Tritanopia (blue-blind)
#006384
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5234d7;
/* rgb */ color: rgb(82, 52, 215);
/* oklch */ color: oklch(47.6% 0.231 281.5);
Tailwind
colors: {
  custom: {
    50: '#9270e5',
    500: '#5234d7',
    950: '#000000',
  },
}
SCSS
$custom: #5234d7;
$custom-light: #9270e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5234d7",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 215
  },
  "hsl": {
    "h": 251.043,
    "s": 67.078,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47563,
    "c": 0.23078,
    "h": 281.5
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#5234D7
secondary
#CAD790
accent
#EA3ECA
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5234D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5234D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva