#6338CE#6338CE

#6338CE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.215 H 288.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6338CE
RGBrgb(99, 56, 206)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 73%, 81%)
CMYKcmyk(51.9%, 72.8%, 0%, 19.2%)
CIE-LABlab(37.73, 53.93, -70.75)
CIE-LCHlch(37.73, 88.96, 307.31°)
OKLaboklab(48.71% 0.0697 -0.2033)
OKLCHoklch(48.71% 0.215 288.9)
XYZxyz(17.6971, 9.9364, 59.3660)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338CE #A3CE38
analogous
#3858CE #6338CE #AE38CE
triadic
#6338CE #CE6338 #38CE63
tetradic
#6338CE #CE3858 #A3CE38 #38CEAE
square
#6338CE #CE3858 #A3CE38 #38CEAE
split-complementary
#6338CE #CEAE38 #58CE38
monochromatic
#341C70 #4A28A1 #6338CE #8969DA #B09AE6

Accessibility & contrast

On white

7.03
#6338CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6338CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338CE
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338CE#FFFFFF#000000##FFFFFF
##6338CE1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#3B6080
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6338ce;
/* rgb */ color: rgb(99, 56, 206);
/* oklch */ color: oklch(48.7% 0.215 288.9);
Tailwind
colors: {
  custom: {
    50: '#9a73de',
    500: '#6338ce',
    950: '#000000',
  },
}
SCSS
$custom: #6338ce;
$custom-light: #9a73de;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ce",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 257.2,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48713,
    "c": 0.21494,
    "h": 288.9
  },
  "luminance": 0.09937
}

Semantic roles & 50–950 ramp

primary
#6338CE
secondary
#BFD290
accent
#E444B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338CE

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

Preview Lab → · Contrast checker → · Palette generator →

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