#6131A2#6131A2

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

Color values

HEX#6131A2
RGBrgb(97, 49, 162)
HSLhsl(265, 54%, 41%)
HSVhsv(265, 70%, 64%)
CMYKcmyk(40.1%, 69.8%, 0%, 36.5%)
CIE-LABlab(32.58, 45.18, -53.15)
CIE-LCHlch(32.58, 69.76, 310.37°)
OKLaboklab(43.87% 0.0821 -0.1517)
OKLCHoklch(43.87% 0.172 298.4)
XYZxyz(12.5480, 7.3465, 34.9323)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6131A2 #72A231
analogous
#3139A2 #6131A2 #9A31A2
triadic
#6131A2 #A26131 #31A261
tetradic
#6131A2 #A23139 #72A231 #31A29A
square
#6131A2 #A23139 #72A231 #31A29A
split-complementary
#6131A2 #A29A31 #39A231
monochromatic
#291544 #452373 #6131A2 #7F48C8 #A077D6

Accessibility & contrast

On white

8.50
#6131A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6131A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6131A2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6131A2#FFFFFF#000000##FFFFFF
##6131A21.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6131a2;
/* rgb */ color: rgb(97, 49, 162);
/* oklch */ color: oklch(43.9% 0.172 298.4);
Tailwind
colors: {
  custom: {
    50: '#936dbe',
    500: '#6131a2',
    950: '#000000',
  },
}
SCSS
$custom: #6131a2;
$custom-light: #936dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6131a2",
  "rgb": {
    "r": 97,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 265.487,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43873,
    "c": 0.17247,
    "h": 298.4
  },
  "luminance": 0.07347
}

Semantic roles & 50–950 ramp

primary
#6131A2
secondary
#9DBE71
accent
#DD4B9F
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6131A2

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

Preview Lab → · Contrast checker → · Palette generator →

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