#6338A3#6338A3

#6338A3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.165 H 297.9°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6338A3
RGBrgb(99, 56, 163)
HSLhsl(264, 49%, 43%)
HSVhsv(264, 66%, 64%)
CMYKcmyk(39.3%, 65.6%, 0%, 36.1%)
CIE-LABlab(34.24, 42.17, -51.05)
CIE-LCHlch(34.24, 66.21, 309.55°)
OKLaboklab(45.14% 0.0771 -0.1455)
OKLCHoklch(45.14% 0.165 297.9)
XYZxyz(13.1689, 8.1251, 35.5177)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338A3 #78A338
analogous
#3843A3 #6338A3 #9838A3
triadic
#6338A3 #A36338 #38A363
tetradic
#6338A3 #A33843 #78A338 #38A398
square
#6338A3 #A33843 #78A338 #38A398
split-complementary
#6338A3 #A39838 #43A338
monochromatic
#2C1948 #472875 #6338A3 #8154C4 #A382D4

Accessibility & contrast

On white

8.00
#6338A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6338A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338A3
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338A3#FFFFFF#000000##FFFFFF
##6338A31.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#545068
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6338a3;
/* rgb */ color: rgb(99, 56, 163);
/* oklch */ color: oklch(45.1% 0.165 297.9);
Tailwind
colors: {
  custom: {
    50: '#9471bf',
    500: '#6338a3',
    950: '#000000',
  },
}
SCSS
$custom: #6338a3;
$custom-light: #9471bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6338a3",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 163
  },
  "hsl": {
    "h": 264.112,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45142,
    "c": 0.16464,
    "h": 297.9
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#6338A3
secondary
#A2BD79
accent
#D84FA1
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6338A3

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

Preview Lab → · Contrast checker → · Palette generator →

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