#6538AB#6538AB

#6538AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.174 H 296.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#6538AB
RGBrgb(101, 56, 171)
HSLhsl(263, 51%, 45%)
HSVhsv(263, 67%, 67%)
CMYKcmyk(40.9%, 67.3%, 0%, 32.9%)
CIE-LABlab(35.07, 44.73, -54.49)
CIE-LCHlch(35.07, 70.50, 309.38°)
OKLaboklab(45.98% 0.079 -0.1555)
OKLCHoklch(45.98% 0.174 296.9)
XYZxyz(14.1298, 8.5351, 39.4232)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6538AB #7EAB38
analogous
#3845AB #6538AB #9F38AB
triadic
#6538AB #AB6538 #38AB65
tetradic
#6538AB #AB3845 #7EAB38 #38AB9F
square
#6538AB #AB3845 #7EAB38 #38AB9F
split-complementary
#6538AB #AB9F38 #45AB38
monochromatic
#2F1A4F #4A297D #6538AB #8458C8 #A686D7

Accessibility & contrast

On white

7.76
#6538AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6538AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6538AB
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6538AB#FFFFFF#000000##FFFFFF
##6538AB1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#53536D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6538ab;
/* rgb */ color: rgb(101, 56, 171);
/* oklch */ color: oklch(46.0% 0.174 296.9);
Tailwind
colors: {
  custom: {
    50: '#9672c5',
    500: '#6538ab',
    950: '#000000',
  },
}
SCSS
$custom: #6538ab;
$custom-light: #9672c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6538ab",
  "rgb": {
    "r": 101,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 263.478,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.17443,
    "h": 296.9
  },
  "luminance": 0.08535
}

Semantic roles & 50–950 ramp

primary
#6538AB
secondary
#A7C17D
accent
#DA4EA3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6538AB

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

Preview Lab → · Contrast checker → · Palette generator →

#6538AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva