#6638CB#6638CB

#6638CB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.211 H 290.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#6638CB
RGBrgb(102, 56, 203)
HSLhsl(259, 59%, 51%)
HSVhsv(259, 72%, 80%)
CMYKcmyk(49.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.78, 53.56, -68.92)
CIE-LCHlch(37.78, 87.29, 307.85°)
OKLaboklab(48.74% 0.0747 -0.1978)
OKLCHoklch(48.74% 0.211 290.7)
XYZxyz(17.6701, 9.9642, 57.4806)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638CB #9DCB38
analogous
#3853CB #6638CB #B038CB
triadic
#6638CB #CB6638 #38CB66
tetradic
#6638CB #CB3853 #9DCB38 #38CBB0
square
#6638CB #CB3853 #9DCB38 #38CBB0
split-complementary
#6638CB #CBB038 #53CB38
monochromatic
#351C6C #4D299D #6638CB #8B69D8 #B199E4

Accessibility & contrast

On white

7.02
#6638CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6638CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638CB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638CB#FFFFFF#000000##FFFFFF
##6638CB1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#445F7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6638cb;
/* rgb */ color: rgb(102, 56, 203);
/* oklch */ color: oklch(48.7% 0.211 290.7);
Tailwind
colors: {
  custom: {
    50: '#9b73dc',
    500: '#6638cb',
    950: '#000000',
  },
}
SCSS
$custom: #6638cb;
$custom-light: #9b73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6638cb",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 258.776,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48741,
    "c": 0.21148,
    "h": 290.7
  },
  "luminance": 0.09965
}

Semantic roles & 50–950 ramp

primary
#6638CB
secondary
#BCD08F
accent
#E246B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6638CB

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

Preview Lab → · Contrast checker → · Palette generator →

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