#6339AB#6339AB

#6339AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.173 H 295.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6339AB
RGBrgb(99, 57, 171)
HSLhsl(262, 50%, 45%)
HSVhsv(262, 67%, 67%)
CMYKcmyk(42.1%, 66.7%, 0%, 32.9%)
CIE-LABlab(35.04, 43.79, -54.55)
CIE-LCHlch(35.04, 69.95, 308.75°)
OKLaboklab(45.91% 0.0751 -0.1558)
OKLCHoklch(45.91% 0.173 295.7)
XYZxyz(13.9575, 8.5189, 39.4291)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6339AB #81AB39
analogous
#3948AB #6339AB #9C39AB
triadic
#6339AB #AB6339 #39AB63
tetradic
#6339AB #AB3948 #81AB39 #39AB9C
square
#6339AB #AB3948 #81AB39 #39AB9C
split-complementary
#6339AB #AB9C39 #48AB39
monochromatic
#2E1A4F #482A7D #6339AB #8259C8 #A587D7

Accessibility & contrast

On white

7.77
#6339AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6339AB#FFFFFF#000000##FFFFFF
##6339AB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#50546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6339ab;
/* rgb */ color: rgb(99, 57, 171);
/* oklch */ color: oklch(45.9% 0.173 295.7);
Tailwind
colors: {
  custom: {
    50: '#9572c5',
    500: '#6339ab',
    950: '#000000',
  },
}
SCSS
$custom: #6339ab;
$custom-light: #9572c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6339ab",
  "rgb": {
    "r": 99,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 262.105,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.17292,
    "h": 295.7
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#6339AB
secondary
#A9C17F
accent
#DA4EA6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6339AB

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

Preview Lab → · Contrast checker → · Palette generator →

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