#6338D5#6338D5

#6338D5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.223 H 287.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6338D5
RGBrgb(99, 56, 213)
HSLhsl(256, 65%, 53%)
HSVhsv(256, 74%, 84%)
CMYKcmyk(53.5%, 73.7%, 0%, 16.5%)
CIE-LABlab(38.35, 55.86, -73.78)
CIE-LCHlch(38.35, 92.54, 307.13°)
OKLaboklab(49.34% 0.068 -0.2122)
OKLCHoklch(49.34% 0.223 287.8)
XYZxyz(18.5665, 10.2841, 63.9446)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338D5 #AAD538
analogous
#385CD5 #6338D5 #B138D5
triadic
#6338D5 #D56338 #38D563
tetradic
#6338D5 #D5385C #AAD538 #38D5B1
square
#6338D5 #D5385C #AAD538 #38D5B1
split-complementary
#6338D5 #D5B138 #5CD538
monochromatic
#341A79 #4924AC #6338D5 #8B6BE0 #B29DEA

Accessibility & contrast

On white

6.87
#6338D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6338D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338D5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338D5#FFFFFF#000000##FFFFFF
##6338D51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0056D2
Tritanopia (blue-blind)
#346384
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6338d5;
/* rgb */ color: rgb(99, 56, 213);
/* oklch */ color: oklch(49.3% 0.223 287.8);
Tailwind
colors: {
  custom: {
    50: '#9b73e3',
    500: '#6338d5',
    950: '#000000',
  },
}
SCSS
$custom: #6338d5;
$custom-light: #9b73e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6338d5",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 256.433,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49339,
    "c": 0.22284,
    "h": 287.8
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

primary
#6338D5
secondary
#C4D692
accent
#E840BA
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6338D5

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

Preview Lab → · Contrast checker → · Palette generator →

#6338D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva