#6338D9#6338D9

#6338D9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.227 H 287.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6338D9
RGBrgb(99, 56, 217)
HSLhsl(256, 68%, 54%)
HSVhsv(256, 74%, 85%)
CMYKcmyk(54.4%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.71, 56.96, -75.49)
CIE-LCHlch(38.71, 94.57, 307.03°)
OKLaboklab(49.7% 0.0671 -0.2172)
OKLCHoklch(49.7% 0.227 287.2)
XYZxyz(19.0804, 10.4897, 66.6515)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338D9 #AED938
analogous
#385DD9 #6338D9 #B338D9
triadic
#6338D9 #D96338 #38D963
tetradic
#6338D9 #D9385D #AED938 #38D9B3
square
#6338D9 #D9385D #AED938 #38D9B3
split-complementary
#6338D9 #D9B338 #5DD938
monochromatic
#33187E #4822B2 #6338D9 #8B6BE3 #B49FED

Accessibility & contrast

On white

6.78
#6338D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6338D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338D9
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338D9#FFFFFF#000000##FFFFFF
##6338D91.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#306586
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6338d9;
/* rgb */ color: rgb(99, 56, 217);
/* oklch */ color: oklch(49.7% 0.227 287.2);
Tailwind
colors: {
  custom: {
    50: '#9b73e6',
    500: '#6338d9',
    950: '#000000',
  },
}
SCSS
$custom: #6338d9;
$custom-light: #9b73e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6338d9",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 256.025,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.22733,
    "h": 287.2
  },
  "luminance": 0.10491
}

Semantic roles & 50–950 ramp

primary
#6338D9
secondary
#C6D994
accent
#EB3DBC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6338D9

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

Preview Lab → · Contrast checker → · Palette generator →

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