#6638BD#6638BD

#6638BD is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.196 H 293.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#6638BD
RGBrgb(102, 56, 189)
HSLhsl(261, 54%, 48%)
HSVhsv(261, 70%, 74%)
CMYKcmyk(46%, 70.4%, 0%, 25.9%)
CIE-LABlab(36.61, 49.77, -62.66)
CIE-LCHlch(36.61, 80.01, 308.46°)
OKLaboklab(47.55% 0.0775 -0.1795)
OKLCHoklch(47.55% 0.196 293.4)
XYZxyz(16.0764, 9.3268, 49.0874)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638BD #8FBD38
analogous
#384CBD #6638BD #A838BD
triadic
#6638BD #BD6638 #38BD66
tetradic
#6638BD #BD384C #8FBD38 #38BDA8
square
#6638BD #BD384C #8FBD38 #38BDA8
split-complementary
#6638BD #BDA838 #4CBD38
monochromatic
#331C5F #4D2A8E #6638BD #8862D0 #AC91DE

Accessibility & contrast

On white

7.33
#6638BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6638BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638BD
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638BD#FFFFFF#000000##FFFFFF
##6638BD1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#4C5A76
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6638bd;
/* rgb */ color: rgb(102, 56, 189);
/* oklch */ color: oklch(47.5% 0.196 293.4);
Tailwind
colors: {
  custom: {
    50: '#9972d2',
    500: '#6638bd',
    950: '#000000',
  },
}
SCSS
$custom: #6638bd;
$custom-light: #9972d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6638bd",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 260.752,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47547,
    "c": 0.19551,
    "h": 293.4
  },
  "luminance": 0.09327
}

Semantic roles & 50–950 ramp

primary
#6638BD
secondary
#B3C987
accent
#DE4AAB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6638BD

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

Preview Lab → · Contrast checker → · Palette generator →

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