#6338A5#6338A5

#6338A5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.167 H 297.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6338A5
RGBrgb(99, 56, 165)
HSLhsl(264, 49%, 43%)
HSVhsv(264, 66%, 65%)
CMYKcmyk(40%, 66.1%, 0%, 35.3%)
CIE-LABlab(34.39, 42.70, -52.01)
CIE-LCHlch(34.39, 67.30, 309.39°)
OKLaboklab(45.3% 0.0769 -0.1483)
OKLCHoklch(45.3% 0.167 297.4)
XYZxyz(13.3496, 8.1974, 36.4689)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338A5 #7AA538
analogous
#3843A5 #6338A5 #9938A5
triadic
#6338A5 #A56338 #38A563
tetradic
#6338A5 #A53843 #7AA538 #38A599
square
#6338A5 #A53843 #7AA538 #38A599
split-complementary
#6338A5 #A59938 #43A538
monochromatic
#2C194A #482877 #6338A5 #8155C5 #A383D5

Accessibility & contrast

On white

7.96
#6338A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6338A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338A5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338A5#FFFFFF#000000##FFFFFF
##6338A51.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#535169
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6338a5;
/* rgb */ color: rgb(99, 56, 165);
/* oklch */ color: oklch(45.3% 0.167 297.4);
Tailwind
colors: {
  custom: {
    50: '#9571c0',
    500: '#6338a5',
    950: '#000000',
  },
}
SCSS
$custom: #6338a5;
$custom-light: #9571c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6338a5",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 263.67,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45296,
    "c": 0.16704,
    "h": 297.4
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#6338A5
secondary
#A4BE7A
accent
#D94FA2
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6338A5

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

Preview Lab → · Contrast checker → · Palette generator →

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