#6538D5#6538D5

#6538D5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.223 H 288.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6538D5
RGBrgb(101, 56, 213)
HSLhsl(257, 65%, 53%)
HSVhsv(257, 74%, 84%)
CMYKcmyk(52.6%, 73.7%, 0%, 16.5%)
CIE-LABlab(38.55, 56.14, -73.45)
CIE-LCHlch(38.55, 92.45, 307.39°)
OKLaboklab(49.53% 0.0709 -0.2112)
OKLCHoklch(49.53% 0.223 288.6)
XYZxyz(18.7877, 10.3982, 63.9550)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6538D5 #A8D538
analogous
#385AD5 #6538D5 #B338D5
triadic
#6538D5 #D56538 #38D565
tetradic
#6538D5 #D5385A #A8D538 #38D5B3
square
#6538D5 #D5385A #A8D538 #38D5B3
split-complementary
#6538D5 #D5B338 #5AD538
monochromatic
#351A79 #4B24AC #6538D5 #8C6BE0 #B39DEA

Accessibility & contrast

On white

6.82
#6538D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6538D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6538D5
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6538D5#FFFFFF#000000##FFFFFF
##6538D51.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#396384
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6538d5;
/* rgb */ color: rgb(101, 56, 213);
/* oklch */ color: oklch(49.5% 0.223 288.6);
Tailwind
colors: {
  custom: {
    50: '#9c73e3',
    500: '#6538d5',
    950: '#000000',
  },
}
SCSS
$custom: #6538d5;
$custom-light: #9c73e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6538d5",
  "rgb": {
    "r": 101,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 257.197,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.22275,
    "h": 288.6
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#6538D5
secondary
#C3D692
accent
#E840B8
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6538D5

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

Preview Lab → · Contrast checker → · Palette generator →

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