#6338A4#6338A4

#6338A4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.166 H 297.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#6338A4
RGBrgb(99, 56, 164)
HSLhsl(264, 49%, 43%)
HSVhsv(264, 66%, 64%)
CMYKcmyk(39.6%, 65.9%, 0%, 35.7%)
CIE-LABlab(34.32, 42.43, -51.53)
CIE-LCHlch(34.32, 66.76, 309.47°)
OKLaboklab(45.22% 0.077 -0.1469)
OKLCHoklch(45.22% 0.166 297.7)
XYZxyz(13.2589, 8.1611, 35.9915)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338A4 #79A438
analogous
#3843A4 #6338A4 #9938A4
triadic
#6338A4 #A46338 #38A463
tetradic
#6338A4 #A43843 #79A438 #38A499
square
#6338A4 #A43843 #79A438 #38A499
split-complementary
#6338A4 #A49938 #43A438
monochromatic
#2C1949 #472876 #6338A4 #8154C5 #A382D4

Accessibility & contrast

On white

7.98
#6338A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6338A4
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338A4#FFFFFF#000000##FFFFFF
##6338A41.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#535169
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6338a4;
/* rgb */ color: rgb(99, 56, 164);
/* oklch */ color: oklch(45.2% 0.166 297.7);
Tailwind
colors: {
  custom: {
    50: '#9471c0',
    500: '#6338a4',
    950: '#000000',
  },
}
SCSS
$custom: #6338a4;
$custom-light: #9471c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6338a4",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 263.889,
    "s": 49.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45219,
    "c": 0.16584,
    "h": 297.7
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6338A4

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

Preview Lab → · Contrast checker → · Palette generator →

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