#6031A2#6031A2

#6031A2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.172 H 297.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#6031A2
RGBrgb(96, 49, 162)
HSLhsl(265, 54%, 41%)
HSVhsv(265, 70%, 64%)
CMYKcmyk(40.7%, 69.8%, 0%, 36.5%)
CIE-LABlab(32.46, 44.99, -53.35)
CIE-LCHlch(32.46, 69.79, 310.14°)
OKLaboklab(43.76% 0.0806 -0.1523)
OKLCHoklch(43.76% 0.172 297.9)
XYZxyz(12.4421, 7.2919, 34.9274)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6031A2 #73A231
analogous
#313AA2 #6031A2 #9931A2
triadic
#6031A2 #A26031 #31A260
tetradic
#6031A2 #A2313A #73A231 #31A299
square
#6031A2 #A2313A #73A231 #31A299
split-complementary
#6031A2 #A29931 #3AA231
monochromatic
#281544 #442373 #6031A2 #7D48C8 #9F77D6

Accessibility & contrast

On white

8.54
#6031A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6031A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6031A2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6031A2#FFFFFF#000000##FFFFFF
##6031A21.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#504C66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6031a2;
/* rgb */ color: rgb(96, 49, 162);
/* oklch */ color: oklch(43.8% 0.172 297.9);
Tailwind
colors: {
  custom: {
    50: '#936dbe',
    500: '#6031a2',
    950: '#000000',
  },
}
SCSS
$custom: #6031a2;
$custom-light: #936dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6031a2",
  "rgb": {
    "r": 96,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 264.956,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4376,
    "c": 0.17234,
    "h": 297.9
  },
  "luminance": 0.07292
}

Semantic roles & 50–950 ramp

primary
#6031A2
secondary
#9EBE71
accent
#DD4BA0
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6031A2

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

Preview Lab → · Contrast checker → · Palette generator →

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