#6338A2#6338A2

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

Color values

HEX#6338A2
RGBrgb(99, 56, 162)
HSLhsl(264, 49%, 43%)
HSVhsv(264, 65%, 64%)
CMYKcmyk(38.9%, 65.4%, 0%, 36.5%)
CIE-LABlab(34.17, 41.90, -50.57)
CIE-LCHlch(34.17, 65.67, 309.64°)
OKLaboklab(45.07% 0.0772 -0.144)
OKLCHoklch(45.07% 0.163 298.2)
XYZxyz(13.0797, 8.0894, 35.0477)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338A2 #77A238
analogous
#3842A2 #6338A2 #9838A2
triadic
#6338A2 #A26338 #38A263
tetradic
#6338A2 #A23842 #77A238 #38A298
square
#6338A2 #A23842 #77A238 #38A298
split-complementary
#6338A2 #A29838 #42A238
monochromatic
#2B1947 #472875 #6338A2 #8153C4 #A281D3

Accessibility & contrast

On white

8.02
#6338A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6338A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338A2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338A2#FFFFFF#000000##FFFFFF
##6338A21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#545068
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6338a2;
/* rgb */ color: rgb(99, 56, 162);
/* oklch */ color: oklch(45.1% 0.163 298.2);
Tailwind
colors: {
  custom: {
    50: '#9471be',
    500: '#6338a2',
    950: '#000000',
  },
}
SCSS
$custom: #6338a2;
$custom-light: #9471be;
$custom-dark: #000000;
JSON
{
  "hex": "#6338a2",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 264.34,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45065,
    "c": 0.16343,
    "h": 298.2
  },
  "luminance": 0.0809
}

Semantic roles & 50–950 ramp

primary
#6338A2
secondary
#A1BD79
accent
#D850A1
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6338A2

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

Preview Lab → · Contrast checker → · Palette generator →

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