#6538B4#6538B4

#6538B4 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.185 H 294.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#6538B4
RGBrgb(101, 56, 180)
HSLhsl(262, 53%, 46%)
HSVhsv(262, 69%, 71%)
CMYKcmyk(43.9%, 68.9%, 0%, 29.4%)
CIE-LABlab(35.77, 47.15, -58.71)
CIE-LCHlch(35.77, 75.30, 308.77°)
OKLaboklab(46.7% 0.0777 -0.1679)
OKLCHoklch(46.7% 0.185 294.8)
XYZxyz(15.0170, 8.8900, 44.0959)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6538B4 #87B438
analogous
#3849B4 #6538B4 #A338B4
triadic
#6538B4 #B46538 #38B465
tetradic
#6538B4 #B43849 #87B438 #38B4A3
square
#6538B4 #B43849 #87B438 #38B4A3
split-complementary
#6538B4 #B4A338 #49B438
monochromatic
#311B57 #4B2985 #6538B4 #855DCD #A88BDB

Accessibility & contrast

On white

7.56
#6538B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6538B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6538B4
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6538B4#FFFFFF#000000##FFFFFF
##6538B41.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#4F5671
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6538b4;
/* rgb */ color: rgb(101, 56, 180);
/* oklch */ color: oklch(46.7% 0.185 294.8);
Tailwind
colors: {
  custom: {
    50: '#9772cb',
    500: '#6538b4',
    950: '#000000',
  },
}
SCSS
$custom: #6538b4;
$custom-light: #9772cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6538b4",
  "rgb": {
    "r": 101,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 261.774,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.18501,
    "h": 294.8
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#6538B4
secondary
#ADC582
accent
#DC4CA8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6538B4

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

Preview Lab → · Contrast checker → · Palette generator →

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