#6638CC#6638CC

#6638CC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.213 H 290.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#6638CC
RGBrgb(102, 56, 204)
HSLhsl(259, 59%, 51%)
HSVhsv(259, 73%, 80%)
CMYKcmyk(50%, 72.5%, 0%, 20%)
CIE-LABlab(37.86, 53.84, -69.36)
CIE-LCHlch(37.86, 87.80, 307.82°)
OKLaboklab(48.83% 0.0745 -0.1991)
OKLCHoklch(48.83% 0.213 290.5)
XYZxyz(17.7896, 10.0120, 58.1102)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638CC #9ECC38
analogous
#3854CC #6638CC #B038CC
triadic
#6638CC #CC6638 #38CC66
tetradic
#6638CC #CC3854 #9ECC38 #38CCB0
square
#6638CC #CC3854 #9ECC38 #38CCB0
split-complementary
#6638CC #CCB038 #54CC38
monochromatic
#351C6E #4D299E #6638CC #8B69D8 #B199E5

Accessibility & contrast

On white

6.99
#6638CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#6638CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6638CC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638CC#FFFFFF#000000##FFFFFF
##6638CC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#435F7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6638cc;
/* rgb */ color: rgb(102, 56, 204);
/* oklch */ color: oklch(48.8% 0.213 290.5);
Tailwind
colors: {
  custom: {
    50: '#9b73dd',
    500: '#6638cc',
    950: '#000000',
  },
}
SCSS
$custom: #6638cc;
$custom-light: #9b73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6638cc",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 258.649,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.2126,
    "h": 290.5
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

primary
#6638CC
secondary
#BCD18F
accent
#E245B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6638CC

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

Preview Lab → · Contrast checker → · Palette generator →

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