#6638D2#6638D2

#6638D2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.219 H 289.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#6638D2
RGBrgb(102, 56, 210)
HSLhsl(258, 63%, 52%)
HSVhsv(258, 73%, 82%)
CMYKcmyk(51.4%, 73.3%, 0%, 17.6%)
CIE-LABlab(38.39, 55.47, -71.98)
CIE-LCHlch(38.39, 90.87, 307.62°)
OKLaboklab(49.36% 0.0731 -0.2068)
OKLCHoklch(49.36% 0.219 289.5)
XYZxyz(18.5231, 10.3054, 61.9734)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638D2 #A4D238
analogous
#3857D2 #6638D2 #B338D2
triadic
#6638D2 #D26638 #38D266
tetradic
#6638D2 #D23857 #A4D238 #38D2B3
square
#6638D2 #D23857 #A4D238 #38D2B3
split-complementary
#6638D2 #D2B338 #57D238
monochromatic
#361A75 #4C26A7 #6638D2 #8C6ADD #B39CE9

Accessibility & contrast

On white

6.86
#6638D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6638D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6638D2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638D2#FFFFFF#000000##FFFFFF
##6638D21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#3E6282
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6638d2;
/* rgb */ color: rgb(102, 56, 210);
/* oklch */ color: oklch(49.4% 0.219 289.5);
Tailwind
colors: {
  custom: {
    50: '#9c73e1',
    500: '#6638d2',
    950: '#000000',
  },
}
SCSS
$custom: #6638d2;
$custom-light: #9c73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6638d2",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 257.922,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49356,
    "c": 0.21935,
    "h": 289.5
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#6638D2
secondary
#C0D591
accent
#E642B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6638D2

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

Preview Lab → · Contrast checker → · Palette generator →

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