#6339AA#6339AA

#6339AA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.172 H 296.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6339AA
RGBrgb(99, 57, 170)
HSLhsl(262, 50%, 45%)
HSVhsv(262, 66%, 67%)
CMYKcmyk(41.8%, 66.5%, 0%, 33.3%)
CIE-LABlab(34.97, 43.51, -54.08)
CIE-LCHlch(34.97, 69.41, 308.82°)
OKLaboklab(45.83% 0.0752 -0.1544)
OKLCHoklch(45.83% 0.172 296)
XYZxyz(13.8625, 8.4809, 38.9290)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6339AA #80AA39
analogous
#3947AA #6339AA #9C39AA
triadic
#6339AA #AA6339 #39AA63
tetradic
#6339AA #AA3947 #80AA39 #39AA9C
square
#6339AA #AA3947 #80AA39 #39AA9C
split-complementary
#6339AA #AA9C39 #47AA39
monochromatic
#2E1A4E #482A7C #6339AA #8259C7 #A487D7

Accessibility & contrast

On white

7.79
#6339AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6339AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6339AA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6339AA#FFFFFF#000000##FFFFFF
##6339AA1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#51546C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6339aa;
/* rgb */ color: rgb(99, 57, 170);
/* oklch */ color: oklch(45.8% 0.172 296.0);
Tailwind
colors: {
  custom: {
    50: '#9572c4',
    500: '#6339aa',
    950: '#000000',
  },
}
SCSS
$custom: #6339aa;
$custom-light: #9572c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6339aa",
  "rgb": {
    "r": 99,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 262.301,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45828,
    "c": 0.17172,
    "h": 296
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

primary
#6339AA
secondary
#A8C17E
accent
#D94EA6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6339AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6339AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva