#6039B2#6039B2

#6039B2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.181 H 292.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6039B2
RGBrgb(96, 57, 178)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 68%, 70%)
CMYKcmyk(46.1%, 68%, 0%, 30.2%)
CIE-LABlab(35.26, 45.13, -58.39)
CIE-LCHlch(35.26, 73.80, 307.70°)
OKLaboklab(46.16% 0.0699 -0.1671)
OKLCHoklch(46.16% 0.181 292.7)
XYZxyz(14.3207, 8.6269, 43.0215)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6039B2 #8BB239
analogous
#394EB2 #6039B2 #9C39B2
triadic
#6039B2 #B26039 #39B260
tetradic
#6039B2 #B2394E #8BB239 #39B29C
square
#6039B2 #B2394E #8BB239 #39B29C
split-complementary
#6039B2 #B29C39 #4EB239
monochromatic
#2E1B55 #472A84 #6039B2 #815DCB #A58BDA

Accessibility & contrast

On white

7.71
#6039B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#6039B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6039B2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6039B2#FFFFFF#000000##FFFFFF
##6039B21.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#485771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6039b2;
/* rgb */ color: rgb(96, 57, 178);
/* oklch */ color: oklch(46.2% 0.181 292.7);
Tailwind
colors: {
  custom: {
    50: '#9472ca',
    500: '#6039b2',
    950: '#000000',
  },
}
SCSS
$custom: #6039b2;
$custom-light: #9472ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6039b2",
  "rgb": {
    "r": 96,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 259.339,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46156,
    "c": 0.18114,
    "h": 292.7
  },
  "luminance": 0.08627
}

Semantic roles & 50–950 ramp

primary
#6039B2
secondary
#AFC482
accent
#DB4DAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6039B2

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

Preview Lab → · Contrast checker → · Palette generator →

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