#6538D9#6538D9

#6538D9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.227 H 287.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6538D9
RGBrgb(101, 56, 217)
HSLhsl(257, 68%, 54%)
HSVhsv(257, 74%, 85%)
CMYKcmyk(53.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.91, 57.23, -75.16)
CIE-LCHlch(38.91, 94.47, 307.29°)
OKLaboklab(49.89% 0.0699 -0.2162)
OKLCHoklch(49.89% 0.227 287.9)
XYZxyz(19.3017, 10.6038, 66.6619)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6538D9 #ACD938
analogous
#385BD9 #6538D9 #B538D9
triadic
#6538D9 #D96538 #38D965
tetradic
#6538D9 #D9385B #ACD938 #38D9B5
square
#6538D9 #D9385B #ACD938 #38D9B5
split-complementary
#6538D9 #D9B538 #5BD938
monochromatic
#35187E #4A22B2 #6538D9 #8D6BE3 #B59FED

Accessibility & contrast

On white

6.73
#6538D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6538D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6538D9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6538D9#FFFFFF#000000##FFFFFF
##6538D91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#366586
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6538d9;
/* rgb */ color: rgb(101, 56, 217);
/* oklch */ color: oklch(49.9% 0.227 287.9);
Tailwind
colors: {
  custom: {
    50: '#9c73e6',
    500: '#6538d9',
    950: '#000000',
  },
}
SCSS
$custom: #6538d9;
$custom-light: #9c73e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6538d9",
  "rgb": {
    "r": 101,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 256.77,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49888,
    "c": 0.22721,
    "h": 287.9
  },
  "luminance": 0.10605
}

Semantic roles & 50–950 ramp

primary
#6538D9
secondary
#C6D994
accent
#EB3DBA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6538D9

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

Preview Lab → · Contrast checker → · Palette generator →

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