#6338C6#6338C6

#6338C6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.206 H 290.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6338C6
RGBrgb(99, 56, 198)
HSLhsl(258, 56%, 50%)
HSVhsv(258, 72%, 78%)
CMYKcmyk(50%, 71.7%, 0%, 22.4%)
CIE-LABlab(37.04, 51.72, -67.24)
CIE-LCHlch(37.04, 84.83, 307.57°)
OKLaboklab(48.01% 0.0714 -0.193)
OKLCHoklch(48.01% 0.206 290.3)
XYZxyz(16.7499, 9.5575, 54.3774)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338C6 #9BC638
analogous
#3854C6 #6338C6 #AA38C6
triadic
#6338C6 #C66338 #38C663
tetradic
#6338C6 #C63854 #9BC638 #38C6AA
square
#6338C6 #C63854 #9BC638 #38C6AA
split-complementary
#6338C6 #C6AA38 #54C638
monochromatic
#331D67 #4B2B96 #6338C6 #8867D4 #AD97E2

Accessibility & contrast

On white

7.21
#6338C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6338C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338C6
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338C6#FFFFFF#000000##FFFFFF
##6338C61.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#415D7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6338c6;
/* rgb */ color: rgb(99, 56, 198);
/* oklch */ color: oklch(48.0% 0.206 290.3);
Tailwind
colors: {
  custom: {
    50: '#9972d8',
    500: '#6338c6',
    950: '#000000',
  },
}
SCSS
$custom: #6338c6;
$custom-light: #9972d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6338c6",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 258.169,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48011,
    "c": 0.20581,
    "h": 290.3
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#6338C6
secondary
#BACD8D
accent
#DF49B2
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338C6

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

Preview Lab → · Contrast checker → · Palette generator →

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