#6131AB#6131AB

#6131AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.183 H 296.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6131AB
RGBrgb(97, 49, 171)
HSLhsl(264, 55%, 43%)
HSVhsv(264, 71%, 67%)
CMYKcmyk(43.3%, 71.3%, 0%, 32.9%)
CIE-LABlab(33.30, 47.57, -57.39)
CIE-LCHlch(33.30, 74.54, 309.65°)
OKLaboklab(44.61% 0.0805 -0.1641)
OKLCHoklch(44.61% 0.183 296.1)
XYZxyz(13.3768, 7.6780, 39.2974)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6131AB #7BAB31
analogous
#313EAB #6131AB #9E31AB
triadic
#6131AB #AB6131 #31AB61
tetradic
#6131AB #AB313E #7BAB31 #31AB9E
square
#6131AB #AB313E #7BAB31 #31AB9E
split-complementary
#6131AB #AB9E31 #3EAB31
monochromatic
#2B164C #46237B #6131AB #7F4DCC #A17DDA

Accessibility & contrast

On white

8.28
#6131AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6131AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6131AB
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6131AB#FFFFFF#000000##FFFFFF
##6131AB1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#4D506A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6131ab;
/* rgb */ color: rgb(97, 49, 171);
/* oklch */ color: oklch(44.6% 0.183 296.1);
Tailwind
colors: {
  custom: {
    50: '#946dc5',
    500: '#6131ab',
    950: '#000000',
  },
}
SCSS
$custom: #6131ab;
$custom-light: #946dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6131ab",
  "rgb": {
    "r": 97,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 263.607,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44611,
    "c": 0.18282,
    "h": 296.1
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#6131AB
secondary
#A4C275
accent
#DF49A4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6131AB

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

Preview Lab → · Contrast checker → · Palette generator →

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