#6131D3#6131D3

#6131D3 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.227 H 288.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6131D3
RGBrgb(97, 49, 211)
HSLhsl(258, 65%, 51%)
HSVhsv(258, 77%, 83%)
CMYKcmyk(54%, 76.8%, 0%, 17.3%)
CIE-LABlab(36.82, 58.30, -75.15)
CIE-LCHlch(36.82, 95.11, 307.81°)
OKLaboklab(48.16% 0.0707 -0.2162)
OKLCHoklch(48.16% 0.227 288.1)
XYZxyz(17.7825, 9.4403, 62.5005)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6131D3 #A3D331
analogous
#3152D3 #6131D3 #B231D3
triadic
#6131D3 #D36131 #31D361
tetradic
#6131D3 #D33152 #A3D331 #31D3B2
square
#6131D3 #D33152 #A3D331 #31D3B2
split-complementary
#6131D3 #D3B231 #52D331
monochromatic
#331871 #4923A4 #6131D3 #8863DE #AE96E9

Accessibility & contrast

On white

7.27
#6131D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6131D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6131D3
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6131D3#FFFFFF#000000##FFFFFF
##6131D31.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#315F81
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6131d3;
/* rgb */ color: rgb(97, 49, 211);
/* oklch */ color: oklch(48.2% 0.227 288.1);
Tailwind
colors: {
  custom: {
    50: '#9a6fe2',
    500: '#6131d3',
    950: '#000000',
  },
}
SCSS
$custom: #6131d3;
$custom-light: #9a6fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#6131d3",
  "rgb": {
    "r": 97,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 257.778,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48164,
    "c": 0.22749,
    "h": 288.1
  },
  "luminance": 0.09441
}

Semantic roles & 50–950 ramp

primary
#6131D3
secondary
#BFD48C
accent
#E840B6
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6131D3

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

Preview Lab → · Contrast checker → · Palette generator →

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