#6338AC#6338AC

#6338AC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.175 H 295.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#6338AC
RGBrgb(99, 56, 172)
HSLhsl(262, 51%, 45%)
HSVhsv(262, 67%, 67%)
CMYKcmyk(42.4%, 67.4%, 0%, 32.5%)
CIE-LABlab(34.92, 44.60, -55.34)
CIE-LCHlch(34.92, 71.08, 308.86°)
OKLaboklab(45.85% 0.076 -0.1581)
OKLCHoklch(45.85% 0.175 295.7)
XYZxyz(14.0042, 8.4592, 39.9167)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338AC #81AC38
analogous
#3847AC #6338AC #9D38AC
triadic
#6338AC #AC6338 #38AC63
tetradic
#6338AC #AC3847 #81AC38 #38AC9D
square
#6338AC #AC3847 #81AC38 #38AC9D
split-complementary
#6338AC #AC9D38 #47AC38
monochromatic
#2E1A50 #48297E #6338AC #8258C9 #A587D8

Accessibility & contrast

On white

7.80
#6338AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6338AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338AC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338AC#FFFFFF#000000##FFFFFF
##6338AC1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#50546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6338ac;
/* rgb */ color: rgb(99, 56, 172);
/* oklch */ color: oklch(45.8% 0.175 295.7);
Tailwind
colors: {
  custom: {
    50: '#9571c6',
    500: '#6338ac',
    950: '#000000',
  },
}
SCSS
$custom: #6338ac;
$custom-light: #9571c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ac",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 262.241,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.17541,
    "h": 295.7
  },
  "luminance": 0.0846
}

Semantic roles & 50–950 ramp

primary
#6338AC
secondary
#A9C27E
accent
#DA4DA6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6338AC

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

Preview Lab → · Contrast checker → · Palette generator →

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