#6031B2#6031B2

#6031B2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.191 H 294.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6031B2
RGBrgb(96, 49, 178)
HSLhsl(262, 57%, 45%)
HSVhsv(262, 72%, 70%)
CMYKcmyk(46.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(33.77, 49.26, -60.81)
CIE-LCHlch(33.77, 78.26, 309.01°)
OKLaboklab(45.1% 0.0776 -0.1742)
OKLCHoklch(45.1% 0.191 294)
XYZxyz(13.9559, 7.8974, 42.8999)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6031B2 #83B231
analogous
#3143B2 #6031B2 #A031B2
triadic
#6031B2 #B26031 #31B260
tetradic
#6031B2 #B23143 #83B231 #31B2A0
square
#6031B2 #B23143 #83B231 #31B2A0
split-complementary
#6031B2 #B2A031 #43B231
monochromatic
#2C1752 #462482 #6031B2 #7F51CF #A281DC

Accessibility & contrast

On white

8.14
#6031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6031B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6031B2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6031B2#FFFFFF#000000##FFFFFF
##6031B21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#48526E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6031b2;
/* rgb */ color: rgb(96, 49, 178);
/* oklch */ color: oklch(45.1% 0.191 294.0);
Tailwind
colors: {
  custom: {
    50: '#956dca',
    500: '#6031b2',
    950: '#000000',
  },
}
SCSS
$custom: #6031b2;
$custom-light: #956dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6031b2",
  "rgb": {
    "r": 96,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 261.86,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45095,
    "c": 0.19073,
    "h": 294
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#6031B2
secondary
#AAC579
accent
#E048A9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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