#6039AB#6039AB

#6039AB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.173 H 294.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6039AB
RGBrgb(96, 57, 171)
HSLhsl(261, 50%, 45%)
HSVhsv(261, 67%, 67%)
CMYKcmyk(43.9%, 66.7%, 0%, 32.9%)
CIE-LABlab(34.71, 43.18, -55.11)
CIE-LCHlch(34.71, 70.01, 308.08°)
OKLaboklab(45.59% 0.0708 -0.1575)
OKLCHoklch(45.59% 0.173 294.2)
XYZxyz(13.6357, 8.3530, 39.4140)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6039AB #84AB39
analogous
#394BAB #6039AB #9939AB
triadic
#6039AB #AB6039 #39AB60
tetradic
#6039AB #AB394B #84AB39 #39AB99
square
#6039AB #AB394B #84AB39 #39AB99
split-complementary
#6039AB #AB9939 #4BAB39
monochromatic
#2C1A4F #462A7D #6039AB #7F59C8 #A387D7

Accessibility & contrast

On white

7.86
#6039AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6039AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6039AB
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6039AB#FFFFFF#000000##FFFFFF
##6039AB1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#4B546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6039ab;
/* rgb */ color: rgb(96, 57, 171);
/* oklch */ color: oklch(45.6% 0.173 294.2);
Tailwind
colors: {
  custom: {
    50: '#9372c5',
    500: '#6039ab',
    950: '#000000',
  },
}
SCSS
$custom: #6039ab;
$custom-light: #9372c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6039ab",
  "rgb": {
    "r": 96,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 260.526,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4559,
    "c": 0.17269,
    "h": 294.2
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#6039AB
secondary
#AAC17F
accent
#DA4EAA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6039AB

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

Preview Lab → · Contrast checker → · Palette generator →

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