#6638BE#6638BE

#6638BE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.197 H 293.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#6638BE
RGBrgb(102, 56, 190)
HSLhsl(261, 54%, 48%)
HSVhsv(261, 71%, 75%)
CMYKcmyk(46.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(36.69, 50.04, -63.11)
CIE-LCHlch(36.69, 80.54, 308.41°)
OKLaboklab(47.63% 0.0774 -0.1808)
OKLCHoklch(47.63% 0.197 293.2)
XYZxyz(16.1854, 9.3703, 49.6611)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638BE #90BE38
analogous
#384DBE #6638BE #A938BE
triadic
#6638BE #BE6638 #38BE66
tetradic
#6638BE #BE384D #90BE38 #38BEA9
square
#6638BE #BE384D #90BE38 #38BEA9
split-complementary
#6638BE #BEA938 #4DBE38
monochromatic
#331C5F #4D2A8F #6638BE #8862D1 #AC92DF

Accessibility & contrast

On white

7.31
#6638BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6638BE
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638BE#FFFFFF#000000##FFFFFF
##6638BE1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#4C5A77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6638be;
/* rgb */ color: rgb(102, 56, 190);
/* oklch */ color: oklch(47.6% 0.197 293.2);
Tailwind
colors: {
  custom: {
    50: '#9972d3',
    500: '#6638be',
    950: '#000000',
  },
}
SCSS
$custom: #6638be;
$custom-light: #9972d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6638be",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 260.597,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47631,
    "c": 0.19666,
    "h": 293.2
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6638BE

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

Preview Lab → · Contrast checker → · Palette generator →

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