#5234DD#5234DD

#5234DD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.238 H 280.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5234DD
RGBrgb(82, 52, 221)
HSLhsl(251, 71%, 54%)
HSVhsv(251, 76%, 87%)
CMYKcmyk(62.9%, 76.5%, 0%, 13.3%)
CIE-LABlab(36.87, 57.93, -80.87)
CIE-LCHlch(36.87, 99.47, 305.61°)
OKLaboklab(48.15% 0.0445 -0.2334)
OKLCHoklch(48.15% 0.238 280.8)
XYZxyz(17.7547, 9.4689, 69.2847)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234DD #BFDD34
analogous
#346ADD #5234DD #A634DD
triadic
#5234DD #DD5234 #34DD52
tetradic
#5234DD #DD346A #BFDD34 #34DDA6
square
#5234DD #DD346A #BFDD34 #34DDA6
split-complementary
#5234DD #DDA634 #6ADD34
monochromatic
#291681 #391EB5 #5234DD #7F68E6 #AB9DEF

Accessibility & contrast

On white

7.26
#5234DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5234DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234DD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234DD#FFFFFF#000000##FFFFFF
##5234DD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE2
Deuteranopia (green-blind)
#0050DA
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5234dd;
/* rgb */ color: rgb(82, 52, 221);
/* oklch */ color: oklch(48.2% 0.238 280.8);
Tailwind
colors: {
  custom: {
    50: '#9470e9',
    500: '#5234dd',
    950: '#000000',
  },
}
SCSS
$custom: #5234dd;
$custom-light: #9470e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5234dd",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 221
  },
  "hsl": {
    "h": 250.651,
    "s": 71.308,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48154,
    "c": 0.23757,
    "h": 280.8
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#5234DD
secondary
#CEDB92
accent
#EE3ACE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5234DD

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

Preview Lab → · Contrast checker → · Palette generator →

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