#6638BA#6638BA

#6638BA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.3% C 0.192 H 294.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#6638BA
RGBrgb(102, 56, 186)
HSLhsl(261, 54%, 47%)
HSVhsv(261, 70%, 73%)
CMYKcmyk(45.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.36, 48.96, -61.29)
CIE-LCHlch(36.36, 78.44, 308.62°)
OKLaboklab(47.3% 0.0781 -0.1754)
OKLCHoklch(47.3% 0.192 294)
XYZxyz(15.7542, 9.1978, 47.3902)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638BA #8CBA38
analogous
#384BBA #6638BA #A738BA
triadic
#6638BA #BA6638 #38BA66
tetradic
#6638BA #BA384B #8CBA38 #38BAA7
square
#6638BA #BA384B #8CBA38 #38BAA7
split-complementary
#6638BA #BAA738 #4BBA38
monochromatic
#321C5C #4C2A8B #6638BA #8760CF #AB8FDD

Accessibility & contrast

On white

7.40
#6638BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6638BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638BA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638BA#FFFFFF#000000##FFFFFF
##6638BA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#4E5975
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6638ba;
/* rgb */ color: rgb(102, 56, 186);
/* oklch */ color: oklch(47.3% 0.192 294.0);
Tailwind
colors: {
  custom: {
    50: '#9972d0',
    500: '#6638ba',
    950: '#000000',
  },
}
SCSS
$custom: #6638ba;
$custom-light: #9972d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6638ba",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 261.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47298,
    "c": 0.19205,
    "h": 294
  },
  "luminance": 0.09198
}

Semantic roles & 50–950 ramp

primary
#6638BA
secondary
#B1C886
accent
#DD4BA9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6638BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6638BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva