#6131AF#6131AF

#6131AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.187 H 295.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6131AF
RGBrgb(97, 49, 175)
HSLhsl(263, 56%, 44%)
HSVhsv(263, 72%, 69%)
CMYKcmyk(44.6%, 72%, 0%, 31.4%)
CIE-LABlab(33.63, 48.63, -59.24)
CIE-LCHlch(33.63, 76.65, 309.38°)
OKLaboklab(44.95% 0.0797 -0.1696)
OKLCHoklch(44.95% 0.187 295.2)
XYZxyz(13.7639, 7.8328, 41.3358)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6131AF #7FAF31
analogous
#3140AF #6131AF #A031AF
triadic
#6131AF #AF6131 #31AF61
tetradic
#6131AF #AF3140 #7FAF31 #31AFA0
square
#6131AF #AF3140 #7FAF31 #31AFA0
split-complementary
#6131AF #AFA031 #40AF31
monochromatic
#2C164F #46247F #6131AF #804FCE #A27FDB

Accessibility & contrast

On white

8.18
#6131AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6131AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6131AF
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6131AF#FFFFFF#000000##FFFFFF
##6131AF1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#4B516D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6131af;
/* rgb */ color: rgb(97, 49, 175);
/* oklch */ color: oklch(44.9% 0.187 295.2);
Tailwind
colors: {
  custom: {
    50: '#956dc8',
    500: '#6131af',
    950: '#000000',
  },
}
SCSS
$custom: #6131af;
$custom-light: #956dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6131af",
  "rgb": {
    "r": 97,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 262.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44947,
    "c": 0.18738,
    "h": 295.2
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#6131AF
secondary
#A7C478
accent
#E048A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6131AF

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

Preview Lab → · Contrast checker → · Palette generator →

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