#6638C2#6638C2

#6638C2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.201 H 292.4°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6638C2
RGBrgb(102, 56, 194)
HSLhsl(260, 55%, 49%)
HSVhsv(260, 71%, 76%)
CMYKcmyk(47.4%, 71.1%, 0%, 23.9%)
CIE-LABlab(37.02, 51.12, -64.92)
CIE-LCHlch(37.02, 82.63, 308.22°)
OKLaboklab(47.97% 0.0766 -0.1861)
OKLCHoklch(47.97% 0.201 292.4)
XYZxyz(16.6286, 9.5476, 51.9952)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638C2 #94C238
analogous
#384FC2 #6638C2 #AB38C2
triadic
#6638C2 #C26638 #38C266
tetradic
#6638C2 #C2384F #94C238 #38C2AB
square
#6638C2 #C2384F #94C238 #38C2AB
split-complementary
#6638C2 #C2AB38 #4FC238
monochromatic
#341D63 #4D2A93 #6638C2 #8965D2 #AE94E0

Accessibility & contrast

On white

7.22
#6638C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6638C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638C2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638C2#FFFFFF#000000##FFFFFF
##6638C21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#495C79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6638c2;
/* rgb */ color: rgb(102, 56, 194);
/* oklch */ color: oklch(48.0% 0.201 292.4);
Tailwind
colors: {
  custom: {
    50: '#9a72d5',
    500: '#6638c2',
    950: '#000000',
  },
}
SCSS
$custom: #6638c2;
$custom-light: #9a72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6638c2",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 260,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47968,
    "c": 0.20124,
    "h": 292.4
  },
  "luminance": 0.09548
}

Semantic roles & 50–950 ramp

primary
#6638C2
secondary
#B6CB8A
accent
#DF49AD
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6638C2

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

Preview Lab → · Contrast checker → · Palette generator →

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