#6B26A2#6B26A2

#6B26A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.8% C 0.187 H 305.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6B26A2
RGBrgb(107, 38, 162)
HSLhsl(273, 62%, 39%)
HSVhsv(273, 77%, 64%)
CMYKcmyk(34%, 76.5%, 0%, 36.5%)
CIE-LABlab(32.08, 52.19, -53.91)
CIE-LCHlch(32.08, 75.03, 314.07°)
OKLaboklab(43.8% 0.1074 -0.1535)
OKLCHoklch(43.8% 0.187 305)
XYZxyz(13.2766, 7.1207, 34.8504)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B26A2 #5DA226
analogous
#2D26A2 #6B26A2 #A2269B
triadic
#6B26A2 #A26B26 #26A26B
tetradic
#6B26A2 #A22D26 #5DA226 #269BA2
square
#6B26A2 #A22D26 #5DA226 #269BA2
split-complementary
#6B26A2 #9BA226 #26A22D
monochromatic
#2A0F3F #4A1A70 #6B26A2 #8B35D0 #A867DB

Accessibility & contrast

On white

8.66
#6B26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#6B26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B26A2
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B26A2#FFFFFF#000000##FFFFFF
##6B26A21.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#614563
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b26a2;
/* rgb */ color: rgb(107, 38, 162);
/* oklch */ color: oklch(43.8% 0.187 305.0);
Tailwind
colors: {
  custom: {
    50: '#9b68be',
    500: '#6b26a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b26a2;
$custom-light: #9b68be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b26a2",
  "rgb": {
    "r": 107,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 273.387,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43801,
    "c": 0.18735,
    "h": 305
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#6B26A2
secondary
#8DC163
accent
#E5438B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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