#6538B2#6538B2

#6538B2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.183 H 295.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#6538B2
RGBrgb(101, 56, 178)
HSLhsl(262, 52%, 46%)
HSVhsv(262, 69%, 70%)
CMYKcmyk(43.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(35.61, 46.61, -57.78)
CIE-LCHlch(35.61, 74.24, 308.89°)
OKLaboklab(46.54% 0.078 -0.1652)
OKLCHoklch(46.54% 0.183 295.3)
XYZxyz(14.8147, 8.8090, 43.0306)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6538B2 #85B238
analogous
#3848B2 #6538B2 #A238B2
triadic
#6538B2 #B26538 #38B265
tetradic
#6538B2 #B23848 #85B238 #38B2A2
square
#6538B2 #B23848 #85B238 #38B2A2
split-complementary
#6538B2 #B2A238 #48B238
monochromatic
#301B55 #4B2983 #6538B2 #855CCC #A88ADA

Accessibility & contrast

On white

7.60
#6538B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6538B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6538B2
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6538B2#FFFFFF#000000##FFFFFF
##6538B21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#505670
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6538b2;
/* rgb */ color: rgb(101, 56, 178);
/* oklch */ color: oklch(46.5% 0.183 295.3);
Tailwind
colors: {
  custom: {
    50: '#9772ca',
    500: '#6538b2',
    950: '#000000',
  },
}
SCSS
$custom: #6538b2;
$custom-light: #9772ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6538b2",
  "rgb": {
    "r": 101,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 262.131,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.18267,
    "h": 295.3
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#6538B2
secondary
#ACC581
accent
#DC4CA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6538B2

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

Preview Lab → · Contrast checker → · Palette generator →

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