#6338D0#6338D0

#6338D0 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.217 H 288.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6338D0
RGBrgb(99, 56, 208)
HSLhsl(257, 62%, 52%)
HSVhsv(257, 73%, 82%)
CMYKcmyk(52.4%, 73.1%, 0%, 18.4%)
CIE-LABlab(37.90, 54.48, -71.62)
CIE-LCHlch(37.90, 89.99, 307.26°)
OKLaboklab(48.89% 0.0692 -0.2059)
OKLCHoklch(48.89% 0.217 288.6)
XYZxyz(17.9416, 10.0342, 60.6537)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338D0 #A5D038
analogous
#3859D0 #6338D0 #AF38D0
triadic
#6338D0 #D06338 #38D063
tetradic
#6338D0 #D03859 #A5D038 #38D0AF
square
#6338D0 #D03859 #A5D038 #38D0AF
split-complementary
#6338D0 #D0AF38 #59D038
monochromatic
#341B73 #4A27A4 #6338D0 #8A6ADC #B19BE7

Accessibility & contrast

On white

6.98
#6338D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6338D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338D0
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338D0#FFFFFF#000000##FFFFFF
##6338D01.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD4
Deuteranopia (green-blind)
#0055CD
Tritanopia (blue-blind)
#396181
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6338d0;
/* rgb */ color: rgb(99, 56, 208);
/* oklch */ color: oklch(48.9% 0.217 288.6);
Tailwind
colors: {
  custom: {
    50: '#9a73e0',
    500: '#6338d0',
    950: '#000000',
  },
}
SCSS
$custom: #6338d0;
$custom-light: #9a73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6338d0",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 256.974,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.2172,
    "h": 288.6
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#6338D0
secondary
#C0D391
accent
#E543B7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338D0

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

Preview Lab → · Contrast checker → · Palette generator →

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