#6B26C4#6B26C4

#6B26C4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.7% C 0.222 H 296.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6B26C4
RGBrgb(107, 38, 196)
HSLhsl(266, 68%, 46%)
HSVhsv(266, 81%, 77%)
CMYKcmyk(45.4%, 80.6%, 0%, 23.1%)
CIE-LABlab(35.00, 60.33, -69.37)
CIE-LCHlch(35.00, 91.94, 311.01°)
OKLaboklab(46.74% 0.0979 -0.1989)
OKLCHoklch(46.74% 0.222 296.2)
XYZxyz(16.7177, 8.4971, 52.9732)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B26C4 #7FC426
analogous
#2630C4 #6B26C4 #BA26C4
triadic
#6B26C4 #C46B26 #26C46B
tetradic
#6B26C4 #C42630 #7FC426 #26C4BA
square
#6B26C4 #C42630 #7FC426 #26C4BA
split-complementary
#6B26C4 #C4BA26 #30C426
monochromatic
#33125D #4F1C91 #6B26C4 #8A4BDC #AC7EE6

Accessibility & contrast

On white

7.78
#6B26C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6B26C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B26C4
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B26C4#FFFFFF#000000##FFFFFF
##6B26C41.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#525476
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6b26c4;
/* rgb */ color: rgb(107, 38, 196);
/* oklch */ color: oklch(46.7% 0.222 296.2);
Tailwind
colors: {
  custom: {
    50: '#9e6ad7',
    500: '#6b26c4',
    950: '#000000',
  },
}
SCSS
$custom: #6b26c4;
$custom-light: #9e6ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b26c4",
  "rgb": {
    "r": 107,
    "g": 38,
    "b": 196
  },
  "hsl": {
    "h": 266.203,
    "s": 67.521,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46735,
    "c": 0.22167,
    "h": 296.2
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#6B26C4
secondary
#A8CE77
accent
#EA3D9F
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #6B26C4

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

Preview Lab → · Contrast checker → · Palette generator →

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