#6638DA#6638DA

#6638DA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.228 H 288.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6638DA
RGBrgb(102, 56, 218)
HSLhsl(257, 69%, 54%)
HSVhsv(257, 74%, 85%)
CMYKcmyk(53.2%, 74.3%, 0%, 14.5%)
CIE-LABlab(39.09, 57.64, -75.42)
CIE-LCHlch(39.09, 94.93, 307.39°)
OKLaboklab(50.07% 0.0711 -0.2169)
OKLCHoklch(50.07% 0.228 288.2)
XYZxyz(19.5448, 10.7141, 67.3542)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638DA #ACDA38
analogous
#385BDA #6638DA #B738DA
triadic
#6638DA #DA6638 #38DA66
tetradic
#6638DA #DA385B #ACDA38 #38DAB7
square
#6638DA #DA385B #ACDA38 #38DAB7
split-complementary
#6638DA #DAB738 #5BDA38
monochromatic
#351880 #4B21B3 #6638DA #8E6CE4 #B59FED

Accessibility & contrast

On white

6.68
#6638DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6638DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6638DA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638DA#FFFFFF#000000##FFFFFF
##6638DA1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DF
Deuteranopia (green-blind)
#0058D7
Tritanopia (blue-blind)
#376587
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6638da;
/* rgb */ color: rgb(102, 56, 218);
/* oklch */ color: oklch(50.1% 0.228 288.2);
Tailwind
colors: {
  custom: {
    50: '#9d74e7',
    500: '#6638da',
    950: '#000000',
  },
}
SCSS
$custom: #6638da;
$custom-light: #9d74e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6638da",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 257.037,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50072,
    "c": 0.22827,
    "h": 288.2
  },
  "luminance": 0.10715
}

Semantic roles & 50–950 ramp

primary
#6638DA
secondary
#C6DA94
accent
#EB3CBA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6638DA

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

Preview Lab → · Contrast checker → · Palette generator →

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