#522BAF#522BAF

#522BAF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.194 H 288.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#522BAF
RGBrgb(82, 43, 175)
HSLhsl(258, 61%, 43%)
HSVhsv(258, 75%, 69%)
CMYKcmyk(53.1%, 75.4%, 0%, 31.4%)
CIE-LABlab(30.92, 49.16, -63.76)
CIE-LCHlch(30.92, 80.50, 307.63°)
OKLaboklab(42.65% 0.0626 -0.1833)
OKLCHoklch(42.65% 0.194 288.9)
XYZxyz(12.0792, 6.6162, 41.1897)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BAF #88AF2B
analogous
#2B46AF #522BAF #942BAF
triadic
#522BAF #AF522B #2BAF52
tetradic
#522BAF #AF2B46 #88AF2B #2BAF94
square
#522BAF #AF2B46 #88AF2B #2BAF94
split-complementary
#522BAF #AF942B #46AF2B
monochromatic
#24134D #3B1F7E #522BAF #6F46D1 #9577DE

Accessibility & contrast

On white

9.04
#522BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#522BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BAF
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BAF#FFFFFF#000000##FFFFFF
##522BAF1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#2E4F6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522baf;
/* rgb */ color: rgb(82, 43, 175);
/* oklch */ color: oklch(42.6% 0.194 288.9);
Tailwind
colors: {
  custom: {
    50: '#8c69c8',
    500: '#522baf',
    950: '#000000',
  },
}
SCSS
$custom: #522baf;
$custom-light: #8c69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#522baf",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 257.727,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.1937,
    "h": 288.9
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#522BAF
secondary
#ACC570
accent
#E444B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522BAF

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

Preview Lab → · Contrast checker → · Palette generator →

#522BAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva