#6638BF#6638BF

#6638BF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.7% C 0.198 H 293.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6638BF
RGBrgb(102, 56, 191)
HSLhsl(260, 55%, 48%)
HSVhsv(260, 71%, 75%)
CMYKcmyk(46.6%, 70.7%, 0%, 25.1%)
CIE-LABlab(36.77, 50.31, -63.56)
CIE-LCHlch(36.77, 81.06, 308.36°)
OKLaboklab(47.72% 0.0772 -0.1821)
OKLCHoklch(47.72% 0.198 293)
XYZxyz(16.2950, 9.4142, 50.2387)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638BF #91BF38
analogous
#384EBF #6638BF #A938BF
triadic
#6638BF #BF6638 #38BF66
tetradic
#6638BF #BF384E #91BF38 #38BFA9
square
#6638BF #BF384E #91BF38 #38BFA9
split-complementary
#6638BF #BFA938 #4EBF38
monochromatic
#331C60 #4D2A90 #6638BF #8963D1 #AC92DF

Accessibility & contrast

On white

7.28
#6638BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6638BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638BF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638BF#FFFFFF#000000##FFFFFF
##6638BF1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#4B5A78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6638bf;
/* rgb */ color: rgb(102, 56, 191);
/* oklch */ color: oklch(47.7% 0.198 293.0);
Tailwind
colors: {
  custom: {
    50: '#9972d3',
    500: '#6638bf',
    950: '#000000',
  },
}
SCSS
$custom: #6638bf;
$custom-light: #9972d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6638bf",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 260.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47715,
    "c": 0.1978,
    "h": 293
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#6638BF
secondary
#B4CA89
accent
#DE4AAC
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6638BF

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

Preview Lab → · Contrast checker → · Palette generator →

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