#6931B2#6931B2

#6931B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.192 H 298.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#6931B2
RGBrgb(105, 49, 178)
HSLhsl(266, 57%, 45%)
HSVhsv(266, 72%, 70%)
CMYKcmyk(41%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.83, 50.85, -59.04)
CIE-LCHlch(34.83, 77.92, 310.74°)
OKLaboklab(46.09% 0.0907 -0.1687)
OKLCHoklch(46.09% 0.192 298.3)
XYZxyz(14.9578, 8.4140, 42.9468)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6931B2 #7AB231
analogous
#3139B2 #6931B2 #AA31B2
triadic
#6931B2 #B26931 #31B269
tetradic
#6931B2 #B23139 #7AB231 #31B2AA
square
#6931B2 #B23139 #7AB231 #31B2AA
split-complementary
#6931B2 #B2AA31 #39B231
monochromatic
#301752 #4D2482 #6931B2 #8851CF #A981DC

Accessibility & contrast

On white

7.83
#6931B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6931B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6931B2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6931B2#FFFFFF#000000##FFFFFF
##6931B21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#57516E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6931b2;
/* rgb */ color: rgb(105, 49, 178);
/* oklch */ color: oklch(46.1% 0.192 298.3);
Tailwind
colors: {
  custom: {
    50: '#9a6eca',
    500: '#6931b2',
    950: '#000000',
  },
}
SCSS
$custom: #6931b2;
$custom-light: #9a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6931b2",
  "rgb": {
    "r": 105,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 266.047,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.19154,
    "h": 298.3
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#6931B2
secondary
#A4C579
accent
#E0489E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6931B2

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

Preview Lab → · Contrast checker → · Palette generator →

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