#6B26B1#6B26B1

#6B26B1 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.203 H 300.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6B26B1
RGBrgb(107, 38, 177)
HSLhsl(270, 65%, 42%)
HSVhsv(270, 79%, 69%)
CMYKcmyk(39.5%, 78.5%, 0%, 30.6%)
CIE-LABlab(33.32, 55.74, -60.89)
CIE-LCHlch(33.32, 82.55, 312.47°)
OKLaboklab(45.06% 0.1036 -0.174)
OKLCHoklch(45.06% 0.203 300.8)
XYZxyz(14.6904, 7.6862, 42.2961)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B26B1 #6CB126
analogous
#2627B1 #6B26B1 #B126B1
triadic
#6B26B1 #B16B26 #26B16B
tetradic
#6B26B1 #B12627 #6CB126 #26B1B1
square
#6B26B1 #B12627 #6CB126 #26B1B1
split-complementary
#6B26B1 #B1B126 #27B126
monochromatic
#2E104C #4D1B7F #6B26B1 #8A3FD6 #A871E0

Accessibility & contrast

On white

8.28
#6B26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6B26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B26B1
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B26B1#FFFFFF#000000##FFFFFF
##6B26B11.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)
#004EB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#5B4C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b26b1;
/* rgb */ color: rgb(107, 38, 177);
/* oklch */ color: oklch(45.1% 0.203 300.8);
Tailwind
colors: {
  custom: {
    50: '#9c69c9',
    500: '#6b26b1',
    950: '#000000',
  },
}
SCSS
$custom: #6b26b1;
$custom-light: #9c69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b26b1",
  "rgb": {
    "r": 107,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 269.784,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.20253,
    "h": 300.8
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#6B26B1
secondary
#9AC76B
accent
#E84095
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B26B1

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

Preview Lab → · Contrast checker → · Palette generator →

#6B26B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva